home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000010| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000020| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000030| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|00000040| 25 25 25 25 25 25 0a 25 | 20 54 68 69 73 20 69 73 |%%%%%%.%| This is|
|00000050| 20 74 68 65 20 75 73 65 | 72 27 73 20 67 75 69 64 | the use|r's guid|
|00000060| 65 20 74 6f 20 46 55 44 | 47 49 54 20 32 2e 33 33 |e to FUD|GIT 2.33|
|00000070| 0a 25 20 4d 61 72 74 69 | 6e 2d 44 2e 20 4c 61 63 |.% Marti|n-D. Lac|
|00000080| 61 73 73 65 20 3c 69 73 | 61 61 63 40 70 68 79 73 |asse <is|aac@phys|
|00000090| 69 63 73 2e 6d 63 67 69 | 6c 6c 2e 63 61 3e 0a 25 |ics.mcgi|ll.ca>.%|
|000000a0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000000b0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000000c0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000000d0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000000e0| 25 25 25 25 25 0a 25 20 | 45 75 72 6f 70 65 61 6e |%%%%%.% |European|
|000000f0| 20 75 73 65 72 73 20 73 | 68 6f 75 6c 64 20 70 72 | users s|hould pr|
|00000100| 6f 62 61 62 6c 79 20 69 | 6e 63 6c 75 64 65 20 61 |obably i|nclude a|
|00000110| 34 20 62 65 66 6f 72 65 | 20 63 6f 6d 70 69 6c 69 |4 before| compili|
|00000120| 6e 67 0a 25 20 54 68 65 | 20 74 77 6f 73 69 64 65 |ng.% The| twoside|
|00000130| 20 6f 70 74 69 6f 6e 20 | 6d 61 6b 65 73 20 69 74 | option |makes it|
|00000140| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 66 6f 72 | appropr|iate for|
|00000150| 20 64 6f 75 62 6c 65 20 | 73 69 64 65 20 70 72 69 | double |side pri|
|00000160| 6e 74 69 6e 67 0a 25 20 | 49 66 20 79 6f 75 20 72 |nting.% |If you r|
|00000170| 65 6d 6f 76 65 20 69 74 | 2c 20 79 6f 75 20 73 68 |emove it|, you sh|
|00000180| 6f 75 6c 64 20 61 64 6a | 75 73 74 20 74 68 65 20 |ould adj|ust the |
|00000190| 72 69 67 68 74 20 61 6e | 64 20 6c 65 66 74 20 6d |right an|d left m|
|000001a0| 61 72 67 69 6e 0a 25 20 | 61 63 63 6f 72 64 69 6e |argin.% |accordin|
|000001b0| 67 6c 79 2e 0a 25 25 25 | 25 25 25 25 25 25 25 25 |gly..%%%|%%%%%%%%|
|000001c0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000001d0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000001e0| 25 25 25 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |%%%%%%%%|%%%%%%%%|
|000001f0| 25 25 25 25 25 25 25 25 | 25 25 25 0a 5c 64 6f 63 |%%%%%%%%|%%%.\doc|
|00000200| 75 6d 65 6e 74 73 74 79 | 6c 65 5b 74 77 6f 73 69 |umentsty|le[twosi|
|00000210| 64 65 2c 74 6f 63 5f 65 | 6e 74 72 79 5d 7b 72 65 |de,toc_e|ntry]{re|
|00000220| 70 6f 72 74 7d 0a 5c 61 | 64 6a 75 73 74 72 65 70 |port}.\a|djustrep|
|00000230| 6f 72 74 0a 5c 73 65 74 | 6c 65 6e 67 74 68 7b 5c |ort.\set|length{\|
|00000240| 6f 64 64 73 69 64 65 6d | 61 72 67 69 6e 7d 7b 30 |oddsidem|argin}{0|
|00000250| 2e 32 35 69 6e 7d 0a 5c | 73 65 74 6c 65 6e 67 74 |.25in}.\|setlengt|
|00000260| 68 7b 5c 65 76 65 6e 73 | 69 64 65 6d 61 72 67 69 |h{\evens|idemargi|
|00000270| 6e 7d 7b 2d 30 2e 32 35 | 69 6e 7d 0a 5c 73 65 74 |n}{-0.25|in}.\set|
|00000280| 6c 65 6e 67 74 68 7b 5c | 74 6f 70 6d 61 72 67 69 |length{\|topmargi|
|00000290| 6e 7d 7b 2d 30 2e 35 30 | 69 6e 7d 0a 5c 73 65 74 |n}{-0.50|in}.\set|
|000002a0| 6c 65 6e 67 74 68 7b 5c | 74 65 78 74 77 69 64 74 |length{\|textwidt|
|000002b0| 68 7d 7b 36 2e 35 69 6e | 7d 0a 5c 73 65 74 6c 65 |h}{6.5in|}.\setle|
|000002c0| 6e 67 74 68 7b 5c 74 65 | 78 74 68 65 69 67 68 74 |ngth{\te|xtheight|
|000002d0| 7d 7b 38 2e 37 35 69 6e | 7d 0a 5c 73 65 74 6c 65 |}{8.75in|}.\setle|
|000002e0| 6e 67 74 68 7b 5c 68 65 | 61 64 73 65 70 7d 7b 30 |ngth{\he|adsep}{0|
|000002f0| 2e 35 30 69 6e 7d 0a 25 | 5c 73 65 74 6c 65 6e 67 |.50in}.%|\setleng|
|00000300| 74 68 7b 5c 70 61 72 73 | 6b 69 70 7d 7b 32 70 74 |th{\pars|kip}{2pt|
|00000310| 7d 0a 0a 5c 64 65 66 5c | 62 71 7b 5c 6e 6f 70 61 |}..\def\|bq{\nopa|
|00000320| 67 65 62 72 65 61 6b 5c | 62 65 67 69 6e 7b 71 75 |gebreak\|begin{qu|
|00000330| 6f 74 65 7d 5c 74 74 20 | 5c 73 65 74 6c 65 6e 67 |ote}\tt |\setleng|
|00000340| 74 68 7b 5c 70 61 72 74 | 6f 70 73 65 70 7d 7b 30 |th{\part|opsep}{0|
|00000350| 70 74 7d 20 5c 73 65 74 | 6c 65 6e 67 74 68 7b 5c |pt} \set|length{\|
|00000360| 74 6f 70 73 65 70 7d 7b | 30 70 74 7d 7d 0a 5c 64 |topsep}{|0pt}}.\d|
|00000370| 65 66 5c 65 71 7b 5c 65 | 6e 64 7b 71 75 6f 74 65 |ef\eq{\e|nd{quote|
|00000380| 7d 7d 0a 5c 64 65 66 5c | 66 75 64 67 69 74 7b 7b |}}.\def\|fudgit{{|
|00000390| 5c 73 63 20 66 75 64 67 | 69 74 7d 7d 0a 5c 64 65 |\sc fudg|it}}.\de|
|000003a0| 66 5c 72 65 61 64 6c 69 | 6e 65 7b 7b 5c 73 63 20 |f\readli|ne{{\sc |
|000003b0| 72 65 61 64 6c 69 6e 65 | 7d 7d 0a 5c 64 65 66 5c |readline|}}.\def\|
|000003c0| 67 6e 75 70 6c 6f 74 7b | 7b 5c 73 63 20 67 6e 75 |gnuplot{|{\sc gnu|
|000003d0| 70 6c 6f 74 7d 7d 0a 5c | 64 65 66 5c 73 67 69 70 |plot}}.\|def\sgip|
|000003e0| 6c 6f 74 7b 7b 5c 73 63 | 20 73 67 69 70 6c 6f 74 |lot{{\sc| sgiplot|
|000003f0| 7d 7d 0a 5c 64 65 66 5c | 65 6d 61 63 73 7b 7b 5c |}}.\def\|emacs{{\|
|00000400| 73 63 20 65 6d 61 63 73 | 7d 7d 0a 5c 64 65 66 5c |sc emacs|}}.\def\|
|00000410| 75 6e 69 78 7b 7b 5c 73 | 63 20 75 6e 69 78 7d 7d |unix{{\s|c unix}}|
|00000420| 0a 5c 64 65 66 5c 68 6f | 63 7b 7b 5c 73 63 20 68 |.\def\ho|c{{\sc h|
|00000430| 6f 63 7d 7d 0a 5c 64 65 | 66 5c 6f 70 74 69 6f 7b |oc}}.\de|f\optio{|
|00000440| 24 5f 7b 5c 6d 62 6f 78 | 7b 5c 69 74 20 5c 66 6f |$_{\mbox|{\it \fo|
|00000450| 6f 74 6e 6f 74 65 73 69 | 7a 65 20 6f 70 74 69 6f |otnotesi|ze optio|
|00000460| 6e 61 6c 7d 7d 24 7d 0a | 5c 64 65 66 5c 53 65 65 |nal}}$}.|\def\See|
|00000470| 61 6c 73 6f 7b 7b 5c 62 | 66 20 53 65 65 20 61 6c |also{{\b|f See al|
|00000480| 73 6f 3a 7d 7d 0a 5c 64 | 65 66 5c 45 78 61 6d 70 |so:}}.\d|ef\Examp|
|00000490| 6c 65 73 7b 7b 5c 62 66 | 20 45 78 61 6d 70 6c 65 |les{{\bf| Example|
|000004a0| 73 3a 7d 7d 0a 5c 64 65 | 66 5c 45 78 61 6d 70 6c |s:}}.\de|f\Exampl|
|000004b0| 65 7b 7b 5c 62 66 20 45 | 78 61 6d 70 6c 65 3a 7d |e{{\bf E|xample:}|
|000004c0| 7d 0a 5c 64 65 66 5c 53 | 79 6e 74 61 78 7b 7b 5c |}.\def\S|yntax{{\|
|000004d0| 62 66 20 53 79 6e 74 61 | 78 3a 7d 7d 0a 5c 64 65 |bf Synta|x:}}.\de|
|000004e0| 66 5c 64 61 73 68 7b 2d | 2d 7d 0a 0a 5c 70 61 67 |f\dash{-|-}..\pag|
|000004f0| 65 73 74 79 6c 65 7b 65 | 6d 70 74 79 7d 0a 5c 62 |estyle{e|mpty}.\b|
|00000500| 65 67 69 6e 7b 64 6f 63 | 75 6d 65 6e 74 7d 0a 5c |egin{doc|ument}.\|
|00000510| 76 73 70 61 63 65 2a 7b | 30 2e 38 69 6e 7d 0a 5c |vspace*{|0.8in}.\|
|00000520| 62 65 67 69 6e 7b 63 65 | 6e 74 65 72 7d 0a 7b 5c |begin{ce|nter}.{\|
|00000530| 48 75 67 65 5c 62 66 20 | 46 55 44 47 49 54 7d 0a |Huge\bf |FUDGIT}.|
|00000540| 5c 65 6e 64 7b 63 65 6e | 74 65 72 7d 0a 25 5c 76 |\end{cen|ter}.%\v|
|00000550| 73 70 61 63 65 7b 30 2e | 31 69 6e 7d 0a 5c 62 65 |space{0.|1in}.\be|
|00000560| 67 69 6e 7b 63 65 6e 74 | 65 72 7d 0a 7b 5c 6c 61 |gin{cent|er}.{\la|
|00000570| 72 67 65 20 41 20 4d 75 | 6c 74 69 2d 50 75 72 70 |rge A Mu|lti-Purp|
|00000580| 6f 73 65 5c 73 6d 61 6c | 6c 73 6b 69 70 5c 5c 0a |ose\smal|lskip\\.|
|00000590| 44 61 74 61 2d 50 72 6f | 63 65 73 73 69 6e 67 5c |Data-Pro|cessing\|
|000005a0| 73 6d 61 6c 6c 73 6b 69 | 70 5c 5c 0a 61 6e 64 5c |smallski|p\\.and\|
|000005b0| 73 6d 61 6c 6c 73 6b 69 | 70 5c 5c 0a 46 69 74 74 |smallski|p\\.Fitt|
|000005c0| 69 6e 67 20 50 72 6f 67 | 72 61 6d 7d 0a 5c 65 6e |ing Prog|ram}.\en|
|000005d0| 64 7b 63 65 6e 74 65 72 | 7d 0a 5c 76 73 70 61 63 |d{center|}.\vspac|
|000005e0| 65 7b 31 2e 30 69 6e 7d | 0a 5c 62 65 67 69 6e 7b |e{1.0in}|.\begin{|
|000005f0| 63 65 6e 74 65 72 7d 0a | 7b 5c 4c 61 72 67 65 20 |center}.|{\Large |
|00000600| 55 73 65 72 27 73 20 4d | 61 6e 75 61 6c 5c 5c 7d |User's M|anual\\}|
|00000610| 0a 25 7b 5c 6c 61 72 67 | 65 20 5c 69 74 20 28 50 |.%{\larg|e \it (P|
|00000620| 52 45 4c 49 4d 49 4e 41 | 52 59 20 43 4f 50 59 29 |RELIMINA|RY COPY)|
|00000630| 7d 0a 5c 65 6e 64 7b 63 | 65 6e 74 65 72 7d 0a 5c |}.\end{c|enter}.\|
|00000640| 76 73 70 61 63 65 7b 31 | 2e 38 69 6e 7d 0a 5c 62 |vspace{1|.8in}.\b|
|00000650| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 56 65 72 |egin{cen|ter}.Ver|
|00000660| 73 69 6f 6e 20 32 2e 33 | 33 5c 5c 0a 4d 61 79 20 |sion 2.3|3\\.May |
|00000670| 31 39 39 33 5c 5c 0a 5c | 65 6e 64 7b 63 65 6e 74 |1993\\.\|end{cent|
|00000680| 65 72 7d 0a 5c 76 73 70 | 61 63 65 7b 30 2e 32 69 |er}.\vsp|ace{0.2i|
|00000690| 6e 7d 0a 5c 62 65 67 69 | 6e 7b 63 65 6e 74 65 72 |n}.\begi|n{center|
|000006a0| 7d 0a 4d 61 72 74 69 6e | 2d 44 61 6e 69 65 6c 20 |}.Martin|-Daniel |
|000006b0| 4c 61 63 61 73 73 65 5c | 5c 0a 43 65 6e 74 65 72 |Lacasse\|\.Center|
|000006c0| 20 66 6f 72 20 74 68 65 | 20 50 68 79 73 69 63 73 | for the| Physics|
|000006d0| 20 6f 66 20 4d 61 74 65 | 72 69 61 6c 73 5c 5c 0a | of Mate|rials\\.|
|000006e0| 61 6e 64 5c 5c 0a 44 65 | 70 61 72 74 6d 65 6e 74 |and\\.De|partment|
|000006f0| 20 6f 66 20 50 68 79 73 | 69 63 73 5c 5c 0a 4d 63 | of Phys|ics\\.Mc|
|00000700| 47 69 6c 6c 20 55 6e 69 | 76 65 72 73 69 74 79 20 |Gill Uni|versity |
|00000710| 5c 5c 0a 4d 6f 6e 74 72 | 5c 27 65 61 6c 2c 20 51 |\\.Montr|\'eal, Q|
|00000720| 75 5c 27 65 62 65 63 2c | 20 43 61 6e 61 64 61 5c |u\'ebec,| Canada\|
|00000730| 5c 0a 24 3c 24 69 73 61 | 61 63 40 70 68 79 73 69 |\.$<$isa|ac@physi|
|00000740| 63 73 2e 6d 63 67 69 6c | 6c 2e 63 61 24 3e 24 0a |cs.mcgil|l.ca$>$.|
|00000750| 5c 65 6e 64 7b 63 65 6e | 74 65 72 7d 0a 5c 76 73 |\end{cen|ter}.\vs|
|00000760| 70 61 63 65 7b 30 2e 32 | 69 6e 7d 0a 5c 62 65 67 |pace{0.2|in}.\beg|
|00000770| 69 6e 7b 63 65 6e 74 65 | 72 7d 0a 7b 5c 6e 6f 72 |in{cente|r}.{\nor|
|00000780| 6d 61 6c 73 69 7a 65 20 | 5c 63 6f 70 79 72 69 67 |malsize |\copyrig|
|00000790| 68 74 5c 20 4d 61 72 74 | 69 6e 2d 44 61 6e 69 65 |ht\ Mart|in-Danie|
|000007a0| 6c 20 4c 61 63 61 73 73 | 65 2c 20 31 39 39 33 7d |l Lacass|e, 1993}|
|000007b0| 0a 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0a 5c 63 |.\end{ce|nter}.\c|
|000007c0| 6c 65 61 72 64 6f 75 62 | 6c 65 70 61 67 65 0a 5c |leardoub|lepage.\|
|000007d0| 70 61 67 65 73 74 79 6c | 65 7b 68 65 61 64 69 6e |pagestyl|e{headin|
|000007e0| 67 73 7d 0a 5c 70 61 67 | 65 6e 75 6d 62 65 72 69 |gs}.\pag|enumberi|
|000007f0| 6e 67 7b 72 6f 6d 61 6e | 7d 0a 5c 72 65 6e 65 77 |ng{roman|}.\renew|
|00000800| 63 6f 6d 6d 61 6e 64 7b | 5c 62 61 73 65 6c 69 6e |command{|\baselin|
|00000810| 65 73 74 72 65 74 63 68 | 7d 7b 31 7d 5c 73 6d 61 |estretch|}{1}\sma|
|00000820| 6c 6c 5c 6e 6f 72 6d 61 | 6c 73 69 7a 65 0a 5c 74 |ll\norma|lsize.\t|
|00000830| 61 62 6c 65 6f 66 63 6f | 6e 74 65 6e 74 73 0a 25 |ableofco|ntents.%|
|00000840| 5c 72 65 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 62 |\renewco|mmand{\b|
|00000850| 61 73 65 6c 69 6e 65 73 | 74 72 65 74 63 68 7d 7b |aselines|tretch}{|
|00000860| 31 2e 35 7d 5c 73 6d 61 | 6c 6c 5c 6e 6f 72 6d 61 |1.5}\sma|ll\norma|
|00000870| 6c 73 69 7a 65 0a 5c 63 | 6c 65 61 72 64 6f 75 62 |lsize.\c|leardoub|
|00000880| 6c 65 70 61 67 65 0a 5c | 63 68 61 70 74 65 72 7b |lepage.\|chapter{|
|00000890| 49 6e 74 72 6f 64 75 63 | 74 69 6f 6e 7d 0a 5c 70 |Introduc|tion}.\p|
|000008a0| 61 67 65 6e 75 6d 62 65 | 72 69 6e 67 7b 61 72 61 |agenumbe|ring{ara|
|000008b0| 62 69 63 7d 0a 5c 73 65 | 63 74 69 6f 6e 7b 57 68 |bic}.\se|ction{Wh|
|000008c0| 61 74 20 69 73 20 5c 66 | 75 64 67 69 74 5c 20 3f |at is \f|udgit\ ?|
|000008d0| 7d 0a 0a 4e 6f 20 6d 6f | 72 65 20 7b 5c 65 6d 20 |}..No mo|re {\em |
|000008e0| 66 75 64 67 69 6e 67 5c | 2f 7d 21 0a 44 65 73 70 |fudging\|/}!.Desp|
|000008f0| 69 74 65 20 69 74 73 20 | 6e 61 6d 65 2c 0a 5c 66 |ite its |name,.\f|
|00000900| 75 64 67 69 74 5c 20 69 | 73 20 61 20 64 6f 75 62 |udgit\ i|s a doub|
|00000910| 6c 65 2d 70 72 65 63 69 | 73 69 6f 6e 20 6d 75 6c |le-preci|sion mul|
|00000920| 74 69 2d 70 75 72 70 6f | 73 65 20 66 69 74 74 69 |ti-purpo|se fitti|
|00000930| 6e 67 20 70 72 6f 67 72 | 61 6d 2e 0a 49 74 20 63 |ng progr|am..It c|
|00000940| 61 6e 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 63 6f |an manip|ulate co|
|00000950| 6d 70 6c 65 74 65 20 63 | 6f 6c 75 6d 6e 73 20 6f |mplete c|olumns o|
|00000960| 66 20 6e 75 6d 62 65 72 | 73 20 75 73 69 6e 67 0a |f number|s using.|
|00000970| 76 65 63 74 6f 72 20 61 | 72 69 74 68 6d 65 74 69 |vector a|rithmeti|
|00000980| 63 2e 20 5c 66 75 64 67 | 69 74 5c 20 69 73 20 61 |c. \fudg|it\ is a|
|00000990| 6c 73 6f 20 61 6e 20 65 | 78 70 72 65 73 73 69 6f |lso an e|xpressio|
|000009a0| 6e 20 6c 61 6e 67 75 61 | 67 65 0a 69 6e 74 65 72 |n langua|ge.inter|
|000009b0| 70 72 65 74 65 72 20 75 | 6e 64 65 72 73 74 61 6e |preter u|nderstan|
|000009c0| 64 69 6e 67 20 6d 6f 73 | 74 20 6f 66 20 43 20 67 |ding mos|t of C g|
|000009d0| 72 61 6d 6d 61 72 2e 0a | 49 74 20 73 75 70 70 6f |rammar..|It suppo|
|000009e0| 72 74 73 20 6d 6f 73 74 | 20 66 75 6e 63 74 69 6f |rts most| functio|
|000009f0| 6e 73 20 66 72 6f 6d 20 | 74 68 65 20 43 20 6d 61 |ns from |the C ma|
|00000a00| 74 68 20 6c 69 62 72 61 | 72 79 2e 0a 46 69 6e 61 |th libra|ry..Fina|
|00000a10| 6c 6c 79 2c 20 5c 66 75 | 64 67 69 74 5c 20 69 73 |lly, \fu|dgit\ is|
|00000a20| 20 61 20 66 72 6f 6e 74 | 20 65 6e 64 20 66 6f 72 | a front| end for|
|00000a30| 20 61 6e 79 20 70 6c 6f | 74 74 69 6e 67 20 70 72 | any plo|tting pr|
|00000a40| 6f 67 72 61 6d 0a 73 75 | 70 70 6f 72 74 69 6e 67 |ogram.su|pporting|
|00000a50| 20 63 6f 6d 6d 61 6e 64 | 73 20 66 72 6f 6d 20 73 | command|s from s|
|00000a60| 74 64 69 6e 2e 20 49 74 | 20 69 73 20 61 20 6e 69 |tdin. It| is a ni|
|00000a70| 63 65 20 6d 61 74 68 65 | 6d 61 74 69 63 61 6c 20 |ce mathe|matical |
|00000a80| 63 6f 6d 70 6c 65 6d 65 | 6e 74 0a 74 6f 20 5c 67 |compleme|nt.to \g|
|00000a90| 6e 75 70 6c 6f 74 2c 20 | 66 6f 72 20 65 78 61 6d |nuplot, |for exam|
|00000aa0| 70 6c 65 2e 0a 0a 54 68 | 65 20 6d 61 69 6e 20 66 |ple...Th|e main f|
|00000ab0| 65 61 74 75 72 65 73 20 | 6f 66 20 5c 66 75 64 67 |eatures |of \fudg|
|00000ac0| 69 74 5c 20 61 72 65 3a | 5c 5c 0a 20 20 20 20 24 |it\ are:|\\. $|
|00000ad0| 5c 62 75 6c 6c 65 74 24 | 20 43 6f 6d 6d 61 6e 64 |\bullet$| Command|
|00000ae0| 20 73 68 65 6c 6c 20 69 | 6e 63 6c 75 64 69 6e 67 | shell i|ncluding|
|00000af0| 20 68 69 73 74 6f 72 79 | 3b 5c 5c 0a 20 20 20 20 | history|;\\. |
|00000b00| 24 5c 62 75 6c 6c 65 74 | 24 20 50 6f 73 73 69 62 |$\bullet|$ Possib|
|00000b10| 6c 65 20 61 62 62 72 65 | 76 69 61 74 69 6f 6e 20 |le abbre|viation |
|00000b20| 6f 66 20 61 6c 6c 20 74 | 68 65 20 7b 5c 65 6d 20 |of all t|he {\em |
|00000b30| 66 69 74 74 69 6e 67 20 | 6d 6f 64 65 7d 20 63 6f |fitting |mode} co|
|00000b40| 6d 6d 61 6e 64 73 3b 5c | 5c 0a 20 20 20 20 24 5c |mmands;\|\. $\|
|00000b50| 62 75 6c 6c 65 74 24 20 | 50 6f 73 73 69 62 6c 65 |bullet$ |Possible|
|00000b60| 20 70 6c 75 72 61 6c 20 | 77 68 65 6e 20 69 74 20 | plural |when it |
|00000b70| 6d 61 6b 65 73 20 73 65 | 6e 73 65 20 74 6f 6f 3b |makes se|nse too;|
|00000b80| 5c 5c 0a 20 20 20 20 24 | 5c 62 75 6c 6c 65 74 24 |\\. $|\bullet$|
|00000b90| 20 55 73 65 72 2d 64 65 | 66 69 6e 61 62 6c 65 20 | User-de|finable |
|00000ba0| 6d 61 63 72 6f 73 3b 5c | 5c 0a 20 20 20 20 24 5c |macros;\|\. $\|
|00000bb0| 62 75 6c 6c 65 74 24 20 | 41 6c 69 61 73 65 73 3b |bullet$ |Aliases;|
|00000bc0| 5c 5c 0a 20 20 20 20 24 | 5c 62 75 6c 6c 65 74 24 |\\. $|\bullet$|
|00000bd0| 20 53 68 65 6c 6c 20 66 | 6c 6f 77 20 63 6f 6e 74 | Shell f|low cont|
|00000be0| 72 6f 6c 20 73 74 61 74 | 65 6d 65 6e 74 73 20 73 |rol stat|ements s|
|00000bf0| 75 63 68 20 61 73 20 69 | 66 2c 20 65 6c 73 65 2c |uch as i|f, else,|
|00000c00| 20 77 68 69 6c 65 2c 20 | 66 6f 72 65 61 63 68 3b | while, |foreach;|
|00000c10| 5c 5c 0a 20 20 20 20 24 | 5c 62 75 6c 6c 65 74 24 |\\. $|\bullet$|
|00000c20| 20 4f 6e 2d 6c 69 6e 65 | 20 68 65 6c 70 3b 5c 5c | On-line| help;\\|
|00000c30| 0a 20 20 20 20 24 5c 62 | 75 6c 6c 65 74 24 20 4f |. $\b|ullet$ O|
|00000c40| 6e 2d 6c 69 6e 65 20 73 | 65 6c 65 63 74 61 62 6c |n-line s|electabl|
|00000c50| 65 20 70 6c 6f 74 74 69 | 6e 67 20 70 72 6f 67 72 |e plotti|ng progr|
|00000c60| 61 6d 3b 5c 5c 0a 20 20 | 20 20 24 5c 62 75 6c 6c |am;\\. | $\bull|
|00000c70| 65 74 24 20 46 6f 75 72 | 69 65 72 20 74 72 61 6e |et$ Four|ier tran|
|00000c80| 73 66 6f 72 6d 73 3b 5c | 5c 0a 20 20 20 20 24 5c |sforms;\|\. $\|
|00000c90| 62 75 6c 6c 65 74 24 20 | 43 75 62 69 63 20 73 70 |bullet$ |Cubic sp|
|00000ca0| 6c 69 6e 65 20 69 6e 74 | 65 72 70 6f 6c 61 74 69 |line int|erpolati|
|00000cb0| 6f 6e 3b 5c 5c 0a 20 20 | 20 20 24 5c 62 75 6c 6c |on;\\. | $\bull|
|00000cc0| 65 74 24 20 44 6f 75 62 | 6c 65 2d 70 72 65 63 69 |et$ Doub|le-preci|
|00000cd0| 73 69 6f 6e 20 62 75 69 | 6c 74 2d 69 6e 20 63 61 |sion bui|lt-in ca|
|00000ce0| 6c 63 75 6c 61 74 6f 72 | 3b 5c 5c 0a 20 20 20 20 |lculator|;\\. |
|00000cf0| 24 5c 62 75 6c 6c 65 74 | 24 20 42 75 69 6c 74 2d |$\bullet|$ Built-|
|00000d00| 69 6e 20 69 6e 74 65 72 | 70 72 65 74 65 72 20 73 |in inter|preter s|
|00000d10| 75 70 70 6f 72 74 69 6e | 67 20 6d 6f 73 74 20 6f |upportin|g most o|
|00000d20| 66 20 43 20 6c 61 6e 67 | 75 61 67 65 20 69 6e 63 |f C lang|uage inc|
|00000d30| 6c 75 64 69 6e 67 20 66 | 6c 6f 77 0a 20 20 20 20 |luding f|low. |
|00000d40| 63 6f 6e 74 72 6f 6c 20 | 28 69 66 2c 20 65 6c 73 |control |(if, els|
|00000d50| 65 2c 20 77 68 69 6c 65 | 2c 20 66 6f 72 2c 20 62 |e, while|, for, b|
|00000d60| 72 65 61 6b 2c 20 63 6f | 6e 74 69 6e 75 65 29 3b |reak, co|ntinue);|
|00000d70| 5c 5c 0a 20 20 20 20 24 | 5c 62 75 6c 6c 65 74 24 |\\. $|\bullet$|
|00000d80| 20 55 73 65 72 2d 64 65 | 66 69 6e 61 62 6c 65 20 | User-de|finable |
|00000d90| 66 75 6e 63 74 69 6f 6e | 73 20 61 6e 64 20 70 72 |function|s and pr|
|00000da0| 6f 63 65 64 75 72 65 73 | 3b 5c 5c 0a 20 20 20 20 |ocedures|;\\. |
|00000db0| 24 5c 62 75 6c 6c 65 74 | 24 20 55 73 65 72 2d 64 |$\bullet|$ User-d|
|00000dc0| 65 66 69 6e 65 64 20 6f | 62 6a 65 63 74 73 20 64 |efined o|bjects d|
|00000dd0| 79 6e 61 6d 69 63 61 6c | 6c 79 20 6c 69 6e 6b 61 |ynamical|ly linka|
|00000de0| 62 6c 65 20 61 73 0a 20 | 20 20 20 66 75 6e 63 74 |ble as. | funct|
|00000df0| 69 6f 6e 73 20 6f 72 20 | 70 72 6f 63 65 64 75 72 |ions or |procedur|
|00000e00| 65 73 3b 5c 5c 0a 20 20 | 20 20 24 5c 62 75 6c 6c |es;\\. | $\bull|
|00000e10| 65 74 24 20 44 6f 75 62 | 6c 65 2d 70 72 65 63 69 |et$ Doub|le-preci|
|00000e20| 73 69 6f 6e 20 76 65 63 | 74 6f 72 20 61 72 69 74 |sion vec|tor arit|
|00000e30| 68 6d 65 74 69 63 3b 5c | 5c 0a 20 20 20 20 24 5c |hmetic;\|\. $\|
|00000e40| 62 75 6c 6c 65 74 24 20 | 41 63 63 65 73 73 20 74 |bullet$ |Access t|
|00000e50| 6f 20 74 68 65 20 63 6f | 6d 70 6c 65 74 65 20 43 |o the co|mplete C|
|00000e60| 20 6d 61 74 68 20 6c 69 | 62 72 61 72 79 3b 5c 5c | math li|brary;\\|
|00000e70| 0a 20 20 20 20 24 5c 62 | 75 6c 6c 65 74 24 20 42 |. $\b|ullet$ B|
|00000e80| 75 69 6c 74 2d 69 6e 20 | 66 69 74 74 69 6e 67 20 |uilt-in |fitting |
|00000e90| 73 65 72 69 65 73 20 73 | 75 63 68 20 61 73 3a 5c |series s|uch as:\|
|00000ea0| 5c 0a 20 20 20 20 20 20 | 20 20 2b 20 70 6f 77 65 |\. | + powe|
|00000eb0| 72 20 73 65 72 69 65 73 | 20 28 70 6f 6c 79 6e 6f |r series| (polyno|
|00000ec0| 6d 69 61 6c 29 3b 5c 5c | 0a 20 20 20 20 20 20 20 |mial);\\|. |
|00000ed0| 20 2b 20 73 69 6e 65 20 | 73 65 72 69 65 73 3b 5c | + sine |series;\|
|00000ee0| 5c 0a 20 20 20 20 20 20 | 20 20 2b 20 63 6f 73 69 |\. | + cosi|
|00000ef0| 6e 65 20 73 65 72 69 65 | 73 3b 5c 5c 0a 20 20 20 |ne serie|s;\\. |
|00000f00| 20 20 20 20 20 2b 20 4c | 65 67 65 6e 64 72 65 20 | + L|egendre |
|00000f10| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 73 3b 5c 5c 0a 20 |polynomi|als;\\. |
|00000f20| 20 20 20 20 20 20 20 2b | 20 73 65 72 69 65 73 20 | +| series |
|00000f30| 6f 66 20 47 61 75 73 73 | 69 61 6e 73 3b 5c 5c 0a |of Gauss|ians;\\.|
|00000f40| 20 20 20 20 20 20 20 20 | 2b 20 73 65 72 69 65 73 | |+ series|
|00000f50| 20 6f 66 20 65 78 70 6f | 6e 65 6e 74 69 61 6c 73 | of expo|nentials|
|00000f60| 3b 5c 5c 0a 20 20 20 20 | 24 5c 62 75 6c 6c 65 74 |;\\. |$\bullet|
|00000f70| 24 20 55 73 65 72 2d 64 | 65 66 69 6e 61 62 6c 65 |$ User-d|efinable|
|00000f80| 20 66 69 74 74 69 6e 67 | 20 66 75 6e 63 74 69 6f | fitting| functio|
|00000f90| 6e 73 3b 5c 5c 0a 20 20 | 20 20 24 5c 62 75 6c 6c |ns;\\. | $\bull|
|00000fa0| 65 74 24 20 54 6f 74 61 | 6c 6c 79 20 64 79 6e 61 |et$ Tota|lly dyna|
|00000fb0| 6d 69 63 61 6c 20 61 6c | 6c 6f 63 61 74 69 6f 6e |mical al|location|
|00000fc0| 20 6f 66 20 76 61 72 69 | 61 62 6c 65 73 20 61 6e | of vari|ables an|
|00000fd0| 64 20 70 61 72 61 6d 65 | 74 65 72 73 3b 5c 5c 0a |d parame|ters;\\.|
|00000fe0| 20 20 20 20 24 5c 62 75 | 6c 6c 65 74 24 20 50 6f | $\bu|llet$ Po|
|00000ff0| 73 73 69 62 6c 65 20 73 | 65 6c 65 63 74 69 6f 6e |ssible s|election|
|00001000| 20 6f 66 20 66 69 74 74 | 69 6e 67 20 72 61 6e 67 | of fitt|ing rang|
|00001010| 65 73 2e 0a 0a 20 5c 66 | 75 64 67 69 74 5c 20 68 |es... \f|udgit\ h|
|00001020| 61 73 20 61 20 63 6f 6c | 6c 65 63 74 69 6f 6e 20 |as a col|lection |
|00001030| 6f 66 20 66 69 74 74 69 | 6e 67 20 72 6f 75 74 69 |of fitti|ng routi|
|00001040| 6e 65 73 20 69 6e 63 6c | 75 64 69 6e 67 3a 5c 5c |nes incl|uding:\\|
|00001050| 0a 20 20 20 20 24 5c 62 | 75 6c 6c 65 74 24 20 73 |. $\b|ullet$ s|
|00001060| 74 72 61 69 67 68 74 20 | 6c 69 6e 65 20 28 6c 69 |traight |line (li|
|00001070| 6e 65 61 72 29 20 6c 65 | 61 73 74 20 73 71 75 61 |near) le|ast squa|
|00001080| 72 65 73 3b 5c 5c 0a 20 | 20 20 20 24 5c 62 75 6c |res;\\. | $\bul|
|00001090| 6c 65 74 24 20 73 74 72 | 61 69 67 68 74 20 6c 69 |let$ str|aight li|
|000010a0| 6e 65 20 28 6c 69 6e 65 | 61 72 29 20 6c 65 61 73 |ne (line|ar) leas|
|000010b0| 74 20 61 62 73 6f 6c 75 | 74 65 20 64 65 76 69 61 |t absolu|te devia|
|000010c0| 74 69 6f 6e 3b 5c 5c 0a | 20 20 20 20 24 5c 62 75 |tion;\\.| $\bu|
|000010d0| 6c 6c 65 74 24 20 67 65 | 6e 65 72 61 6c 20 6c 69 |llet$ ge|neral li|
|000010e0| 6e 65 61 72 20 6c 65 61 | 73 74 20 73 71 75 61 72 |near lea|st squar|
|000010f0| 65 73 20 75 73 69 6e 67 | 20 51 52 20 64 65 63 6f |es using| QR deco|
|00001100| 6d 70 6f 73 69 74 69 6f | 6e 3b 5c 5c 0a 20 20 20 |mpositio|n;\\. |
|00001110| 20 24 5c 62 75 6c 6c 65 | 74 24 20 67 65 6e 65 72 | $\bulle|t$ gener|
|00001120| 61 6c 20 6c 69 6e 65 61 | 72 20 6c 65 61 73 74 20 |al linea|r least |
|00001130| 73 71 75 61 72 65 73 20 | 75 73 69 6e 67 20 73 69 |squares |using si|
|00001140| 6e 67 75 6c 61 72 20 76 | 61 6c 75 65 20 64 65 63 |ngular v|alue dec|
|00001150| 6f 6d 70 6f 73 69 74 69 | 6f 6e 3b 5c 5c 0a 20 20 |ompositi|on;\\. |
|00001160| 20 20 24 5c 62 75 6c 6c | 65 74 24 20 6e 6f 6e 6c | $\bull|et$ nonl|
|00001170| 69 6e 65 61 72 20 4d 61 | 72 71 75 61 72 64 74 2d |inear Ma|rquardt-|
|00001180| 4c 65 76 65 6e 62 65 72 | 67 20 6d 65 74 68 6f 64 |Levenber|g method|
|00001190| 2e 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 46 75 74 75 |...\sect|ion{Futu|
|000011a0| 72 65 7d 0a 20 20 20 20 | 5c 66 75 64 67 69 74 5c |re}. |\fudgit\|
|000011b0| 20 63 61 6e 20 62 65 20 | 65 61 73 69 6c 79 20 65 | can be |easily e|
|000011c0| 6e 6c 61 72 67 65 64 20 | 74 6f 20 69 6e 63 6c 75 |nlarged |to inclu|
|000011d0| 64 65 20 6f 74 68 65 72 | 20 62 75 69 6c 74 2d 69 |de other| built-i|
|000011e0| 6e 0a 20 20 20 20 75 6e | 69 76 61 72 69 61 62 6c |n. un|ivariabl|
|000011f0| 65 20 6d 61 6e 69 70 75 | 6c 61 74 69 6f 6e 73 20 |e manipu|lations |
|00001200| 73 75 63 68 20 61 73 20 | 66 61 6e 63 79 20 69 6e |such as |fancy in|
|00001210| 74 65 67 72 61 74 69 6f | 6e 2c 0a 20 20 20 20 64 |tegratio|n,. d|
|00001220| 65 72 69 76 61 74 69 76 | 65 2c 20 73 74 61 74 69 |erivativ|e, stati|
|00001230| 73 74 69 63 73 2c 20 65 | 74 63 2e 20 48 6f 77 65 |stics, e|tc. Howe|
|00001240| 76 65 72 2c 20 64 79 6e | 61 6d 69 63 61 6c 20 6c |ver, dyn|amical l|
|00001250| 69 6e 6b 69 6e 67 20 61 | 6c 6c 6f 77 73 0a 20 20 |inking a|llows. |
|00001260| 20 20 74 68 65 20 75 73 | 65 72 20 61 20 6c 6f 74 | the us|er a lot|
|00001270| 20 6f 66 20 66 6c 65 78 | 69 62 69 6c 69 74 79 2e | of flex|ibility.|
|00001280| 20 44 79 6e 61 6d 69 63 | 61 6c 20 6c 69 6e 6b 69 | Dynamic|al linki|
|00001290| 6e 67 20 73 68 6f 75 6c | 64 20 62 65 0a 20 20 20 |ng shoul|d be. |
|000012a0| 20 70 6f 72 74 65 64 20 | 74 6f 20 6f 74 68 65 72 | ported |to other|
|000012b0| 20 76 65 6e 64 6f 72 73 | 2e 0a 0a 20 20 20 20 49 | vendors|... I|
|000012c0| 66 20 61 6e 79 6f 6e 65 | 20 69 73 20 69 6e 74 65 |f anyone| is inte|
|000012d0| 72 65 73 74 65 64 20 69 | 6e 20 67 6f 69 6e 67 20 |rested i|n going |
|000012e0| 69 6e 20 74 68 69 73 20 | 64 69 72 65 63 74 69 6f |in this |directio|
|000012f0| 6e 20 74 68 65 6e 20 62 | 65 20 6d 79 20 67 75 65 |n then b|e my gue|
|00001300| 73 74 2c 0a 20 20 20 20 | 6f 72 20 73 65 6e 64 20 |st,. |or send |
|00001310| 6d 65 20 74 68 65 20 72 | 6f 75 74 69 6e 65 73 20 |me the r|outines |
|00001320| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 73 65 65 20 |you want| to see |
|00001330| 69 6e 63 6c 75 64 65 64 | 21 20 54 68 65 20 69 6e |included|! The in|
|00001340| 74 65 72 70 72 65 74 65 | 72 0a 20 20 20 20 69 73 |terprete|r. is|
|00001350| 20 62 75 69 6c 74 20 73 | 6f 20 74 68 61 74 20 74 | built s|o that t|
|00001360| 68 65 20 69 6e 63 6c 75 | 73 69 6f 6e 20 6f 66 20 |he inclu|sion of |
|00001370| 65 78 74 72 61 20 6d 6f | 64 75 6c 65 73 20 69 73 |extra mo|dules is|
|00001380| 20 66 61 69 72 6c 79 0a | 20 20 20 20 73 74 72 61 | fairly.| stra|
|00001390| 69 67 68 74 66 6f 72 77 | 61 72 64 2e 0a 0a 20 20 |ightforw|ard... |
|000013a0| 20 20 4f 6e 20 74 68 65 | 20 6f 74 68 65 72 20 68 | On the| other h|
|000013b0| 61 6e 64 2c 20 74 68 65 | 20 64 79 6e 61 6d 69 63 |and, the| dynamic|
|000013c0| 61 6c 20 6c 6f 61 64 65 | 72 20 73 68 6f 75 6c 64 |al loade|r should|
|000013d0| 20 61 6c 6c 6f 77 0a 20 | 20 20 20 5c 66 75 64 67 | allow. | \fudg|
|000013e0| 69 74 5c 20 74 6f 20 62 | 65 63 6f 6d 65 20 61 20 |it\ to b|ecome a |
|000013f0| 6e 69 63 65 20 69 6e 74 | 65 72 66 61 63 65 0a 20 |nice int|erface. |
|00001400| 20 20 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 75 | betwe|en the u|
|00001410| 73 65 72 2c 20 74 68 65 | 20 64 61 74 61 20 66 69 |ser, the| data fi|
|00001420| 6c 65 73 2c 20 61 6e 64 | 20 6d 61 74 68 65 6d 61 |les, and| mathema|
|00001430| 74 69 63 61 6c 20 72 6f | 75 74 69 6e 65 73 2e 0a |tical ro|utines..|
|00001440| 20 20 20 20 41 6e 20 69 | 6d 70 6c 65 6d 65 6e 74 | An i|mplement|
|00001450| 61 74 69 6f 6e 20 6f 66 | 20 6d 61 74 72 69 78 20 |ation of| matrix |
|00001460| 61 72 69 74 68 6d 65 74 | 69 63 20 77 6f 75 6c 64 |arithmet|ic would|
|00001470| 20 68 6f 77 65 76 65 72 | 20 62 65 20 72 65 71 75 | however| be requ|
|00001480| 69 72 65 64 2e 0a 20 20 | 20 20 54 68 69 73 20 6d |ired.. | This m|
|00001490| 69 67 68 74 20 68 61 70 | 70 65 6e 20 6f 6e 65 20 |ight hap|pen one |
|000014a0| 64 61 79 2c 20 69 66 20 | 74 69 6d 65 20 70 65 72 |day, if |time per|
|000014b0| 6d 69 74 73 5c 6c 64 6f | 74 73 20 55 73 65 72 73 |mits\ldo|ts Users|
|000014c0| 20 77 6f 75 6c 64 20 74 | 68 65 6e 0a 20 20 20 20 | would t|hen. |
|000014d0| 6f 6e 6c 79 20 68 61 76 | 65 20 74 6f 20 62 75 69 |only hav|e to bui|
|000014e0| 6c 64 20 28 62 79 20 63 | 6f 6e 73 74 72 75 63 74 |ld (by c|onstruct|
|000014f0| 69 6e 67 20 61 6e 64 2f | 6f 72 20 67 61 74 68 65 |ing and/|or gathe|
|00001500| 72 69 6e 67 20 72 6f 75 | 74 69 6e 65 73 29 0a 20 |ring rou|tines). |
|00001510| 20 20 20 61 20 74 6f 6f | 6c 20 62 6f 78 20 74 68 | a too|l box th|
|00001520| 61 74 20 77 6f 75 6c 64 | 20 62 65 20 74 6f 74 61 |at would| be tota|
|00001530| 6c 6c 79 20 63 6f 6e 66 | 69 67 75 72 61 62 6c 65 |lly conf|igurable|
|00001540| 20 61 6e 64 20 72 65 75 | 73 61 62 6c 65 2e 0a 20 | and reu|sable.. |
|00001550| 20 20 20 5c 66 75 64 67 | 69 74 5c 20 77 6f 75 6c | \fudg|it\ woul|
|00001560| 64 20 74 68 65 6e 20 62 | 65 20 73 74 72 69 70 70 |d then b|e stripp|
|00001570| 65 64 20 66 72 6f 6d 20 | 73 70 6c 69 6e 65 2f 66 |ed from |spline/f|
|00001580| 69 74 74 69 6e 67 2f 66 | 66 74 2f 65 74 63 2e 20 |itting/f|ft/etc. |
|00001590| 72 6f 75 74 69 6e 65 73 | 0a 20 20 20 20 77 68 69 |routines|. whi|
|000015a0| 63 68 20 77 6f 75 6c 64 | 20 63 6f 6d 65 20 69 6e |ch would| come in|
|000015b0| 20 61 20 73 65 70 61 72 | 61 74 65 20 74 6f 6f 6c | a separ|ate tool|
|000015c0| 20 62 6f 78 2e 20 41 6e | 79 6f 6e 65 20 69 6e 74 | box. An|yone int|
|000015d0| 65 72 65 73 74 65 64 3f | 0a 0a 5c 73 65 63 74 69 |erested?|..\secti|
|000015e0| 6f 6e 7b 53 75 70 70 6f | 72 74 65 64 20 41 72 63 |on{Suppo|rted Arc|
|000015f0| 68 69 74 65 63 74 75 72 | 65 73 7d 0a 20 20 20 20 |hitectur|es}. |
|00001600| 41 73 20 69 74 20 73 74 | 61 6e 64 73 20 6e 6f 77 |As it st|ands now|
|00001610| 2c 20 5c 66 75 64 67 69 | 74 5c 20 63 61 6e 20 62 |, \fudgi|t\ can b|
|00001620| 65 20 63 6f 6d 70 69 6c | 65 64 20 6f 6e 20 41 49 |e compil|ed on AI|
|00001630| 58 2c 20 44 41 54 41 20 | 47 45 4e 45 52 41 4c 2c |X, DATA |GENERAL,|
|00001640| 0a 20 20 20 20 48 50 55 | 58 2c 20 6c 69 6e 75 78 |. HPU|X, linux|
|00001650| 2c 20 49 52 49 58 2c 20 | 4e 65 58 54 2c 20 4f 53 |, IRIX, |NeXT, OS|
|00001660| 46 2c 20 53 55 4e 4f 53 | 2c 20 61 6e 64 20 55 4c |F, SUNOS|, and UL|
|00001670| 54 52 49 58 2e 20 50 6f | 72 74 73 20 63 61 6e 20 |TRIX. Po|rts can |
|00001680| 62 65 0a 20 20 20 20 65 | 61 73 69 6c 79 20 6d 61 |be. e|asily ma|
|00001690| 64 65 20 74 6f 20 6f 74 | 68 65 72 20 76 65 6e 64 |de to ot|her vend|
|000016a0| 6f 72 73 2e 20 41 73 20 | 69 74 20 73 74 61 6e 64 |ors. As |it stand|
|000016b0| 73 2c 20 74 68 65 20 64 | 79 6e 61 6d 69 63 20 6c |s, the d|ynamic l|
|000016c0| 6f 61 64 69 6e 67 0a 20 | 20 20 20 66 65 61 74 75 |oading. | featu|
|000016d0| 72 65 20 6f 6e 6c 79 20 | 63 6f 6d 70 69 6c 65 73 |re only |compiles|
|000016e0| 20 6f 6e 20 49 52 49 58 | 2c 20 55 4c 54 52 49 58 | on IRIX|, ULTRIX|
|000016f0| 20 28 76 61 78 20 6f 6e | 6c 79 29 2c 20 61 6e 64 | (vax on|ly), and|
|00001700| 20 53 55 4e 4f 53 2e 20 | 50 6f 72 74 73 0a 20 20 | SUNOS. |Ports. |
|00001710| 20 20 6f 66 20 64 79 6e | 61 6d 69 63 20 6c 6f 61 | of dyn|amic loa|
|00001720| 64 69 6e 67 20 74 6f 20 | 48 50 55 58 20 61 6e 64 |ding to |HPUX and|
|00001730| 20 41 49 58 20 61 72 65 | 20 6e 6f 74 20 66 6f 72 | AIX are| not for|
|00001740| 65 73 65 65 6e 20 69 6e | 20 61 20 6e 65 61 72 0a |eseen in| a near.|
|00001750| 20 20 20 20 66 75 74 75 | 72 65 20 75 6e 6c 65 73 | futu|re unles|
|00001760| 73 20 73 6f 6d 65 6f 6e | 65 20 69 6e 64 69 63 61 |s someon|e indica|
|00001770| 74 65 73 20 6d 65 20 68 | 6f 77 20 74 6f 20 69 6d |tes me h|ow to im|
|00001780| 70 6c 65 6d 65 6e 74 20 | 64 79 6e 61 6d 69 63 20 |plement |dynamic |
|00001790| 6c 6f 61 64 69 6e 67 0a | 20 20 20 20 6f 6e 20 74 |loading.| on t|
|000017a0| 68 65 73 65 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |hese ope|rating s|
|000017b0| 79 73 74 65 6d 73 2e 20 | 49 66 20 79 6f 75 20 6b |ystems. |If you k|
|000017c0| 6e 6f 77 20 73 6f 6d 65 | 74 68 69 6e 67 20 61 62 |now some|thing ab|
|000017d0| 6f 75 74 20 74 68 69 73 | 20 6c 65 74 20 6d 65 0a |out this| let me.|
|000017e0| 20 20 20 20 6b 6e 6f 77 | 2e 20 44 79 6e 61 6d 69 | know|. Dynami|
|000017f0| 63 20 6c 6f 61 64 69 6e | 67 20 73 68 6f 75 6c 64 |c loadin|g should|
|00001800| 20 62 65 20 70 61 72 74 | 20 6f 66 20 6e 65 77 20 | be part| of new |
|00001810| 6f 70 65 72 61 74 69 6e | 67 20 73 79 73 74 65 6d |operatin|g system|
|00001820| 73 20 69 6e 20 61 0a 20 | 20 20 20 6e 65 61 72 20 |s in a. | near |
|00001830| 66 75 74 75 72 65 3a 20 | 73 74 61 79 20 74 75 6e |future: |stay tun|
|00001840| 65 64 2e 0a 0a 5c 73 65 | 63 74 69 6f 6e 7b 42 75 |ed...\se|ction{Bu|
|00001850| 67 73 7d 0a 20 20 20 20 | 54 68 65 72 65 20 61 72 |gs}. |There ar|
|00001860| 65 20 70 72 6f 62 61 62 | 6c 79 20 74 6f 6f 20 6d |e probab|ly too m|
|00001870| 61 6e 79 20 74 6f 20 65 | 6e 75 6d 65 72 61 74 65 |any to e|numerate|
|00001880| 2e 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 70 |. Howeve|r, the p|
|00001890| 72 6f 67 72 61 6d 20 77 | 61 73 0a 20 20 20 20 66 |rogram w|as. f|
|000018a0| 61 69 72 6c 79 20 73 74 | 61 62 6c 65 20 6f 6e 20 |airly st|able on |
|000018b0| 61 20 6c 6f 74 20 6f 66 | 20 74 65 73 74 69 6e 67 |a lot of| testing|
|000018c0| 20 61 6e 64 20 72 6f 75 | 74 69 6e 65 20 61 70 70 | and rou|tine app|
|000018d0| 6c 69 63 61 74 69 6f 6e | 73 2e 0a 20 20 20 20 42 |lication|s.. B|
|000018e0| 65 20 63 61 72 65 66 75 | 6c 20 77 69 74 68 20 70 |e carefu|l with p|
|000018f0| 6f 73 73 69 62 6c 65 20 | 63 69 72 63 75 6c 61 72 |ossible |circular|
|00001900| 20 61 6c 69 61 73 65 73 | 3b 20 62 75 73 74 69 6e | aliases|; bustin|
|00001910| 67 20 61 20 76 65 63 74 | 6f 72 0a 20 20 20 20 62 |g a vect|or. b|
|00001920| 79 20 75 6e 6c 6f 63 6b | 69 6e 67 20 7b 5c 74 74 |y unlock|ing {\tt|
|00001930| 20 64 61 74 61 7d 2e 20 | 41 6c 73 6f 2c 20 73 6f | data}. |Also, so|
|00001940| 6d 65 20 6d 61 6c 6c 6f | 63 28 29 20 6c 69 62 72 |me mallo|c() libr|
|00001950| 61 72 69 65 73 20 61 72 | 65 0a 20 20 20 20 6e 6f |aries ar|e. no|
|00001960| 74 20 61 6c 77 61 79 73 | 20 68 61 70 70 79 20 77 |t always| happy w|
|00001970| 68 65 6e 20 74 68 65 79 | 20 77 6f 72 6b 20 61 20 |hen they| work a |
|00001980| 6c 6f 74 2e 0a 20 20 20 | 20 41 73 20 77 69 74 68 |lot.. | As with|
|00001990| 20 6d 6f 73 74 20 69 6e | 74 65 72 70 72 65 74 65 | most in|terprete|
|000019a0| 72 73 20 28 65 2e 67 2e | 20 63 73 68 29 2c 20 7b |rs (e.g.| csh), {|
|000019b0| 5c 74 74 20 69 66 2c 20 | 65 6c 73 65 2c 20 65 6e |\tt if, |else, en|
|000019c0| 64 69 66 7d 0a 20 20 20 | 20 73 74 61 74 65 6d 65 |dif}. | stateme|
|000019d0| 6e 74 73 20 63 61 6e 20 | 62 65 20 64 69 66 66 69 |nts can |be diffi|
|000019e0| 63 75 6c 74 20 74 6f 20 | 64 65 62 75 67 20 61 6e |cult to |debug an|
|000019f0| 64 20 61 72 65 20 6e 6f | 74 20 6d 75 63 68 20 66 |d are no|t much f|
|00001a00| 6c 65 78 69 62 6c 65 2e | 0a 20 20 20 20 48 6f 77 |lexible.|. How|
|00001a10| 65 76 65 72 2c 20 5c 66 | 75 64 67 69 74 27 73 20 |ever, \f|udgit's |
|00001a20| 66 6c 6f 77 20 63 6f 6e | 74 72 6f 6c 20 65 72 72 |flow con|trol err|
|00001a30| 6f 72 20 6d 65 73 73 61 | 67 65 73 20 61 72 65 20 |or messa|ges are |
|00001a40| 6d 6f 72 65 20 69 6e 64 | 69 63 61 74 69 76 65 0a |more ind|icative.|
|00001a50| 20 20 20 20 74 68 61 6e | 20 74 68 65 20 6f 6e 65 | than| the one|
|00001a60| 20 66 72 6f 6d 20 7b 5c | 69 74 20 63 73 68 7d 20 | from {\|it csh} |
|00001a70| 61 6e 64 20 7b 5c 69 74 | 20 73 68 7d 2e 0a 0a 20 |and {\it| sh}... |
|00001a80| 20 20 20 54 68 65 20 70 | 72 6f 67 72 61 6d 20 68 | The p|rogram h|
|00001a90| 61 73 20 62 65 65 6e 20 | 77 72 69 74 74 65 6e 20 |as been |written |
|00001aa0| 77 69 74 68 20 72 6f 62 | 75 73 74 6e 65 73 73 20 |with rob|ustness |
|00001ab0| 69 6e 20 6d 69 6e 64 20 | 61 6e 64 20 6e 6f 74 0a |in mind |and not.|
|00001ac0| 20 20 20 20 6f 70 74 69 | 6d 69 7a 61 74 69 6f 6e | opti|mization|
|00001ad0| 2e 20 53 6f 6d 65 20 70 | 61 72 74 73 20 6f 66 20 |. Some p|arts of |
|00001ae0| 74 68 65 20 63 6f 64 65 | 20 63 6f 75 6c 64 20 74 |the code| could t|
|00001af0| 68 65 72 65 66 6f 72 65 | 20 62 65 20 69 6d 70 72 |herefore| be impr|
|00001b00| 6f 76 65 64 0a 20 20 20 | 20 66 6f 72 20 73 70 65 |oved. | for spe|
|00001b10| 65 64 2c 20 62 75 74 20 | 61 20 64 65 6c 69 62 65 |ed, but |a delibe|
|00001b20| 72 61 74 65 20 63 68 6f | 69 63 65 20 68 61 73 20 |rate cho|ice has |
|00001b30| 62 65 65 6e 20 6d 61 64 | 65 20 6f 6e 20 72 6f 62 |been mad|e on rob|
|00001b40| 75 73 74 6e 65 73 73 2e | 0a 20 20 20 20 28 41 73 |ustness.|. (As|
|00001b50| 20 61 6e 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 | an exam|ple, the|
|00001b60| 20 64 65 66 61 75 6c 74 | 20 62 65 68 61 76 69 6f | default| behavio|
|00001b70| 72 20 69 73 20 74 6f 20 | 68 61 76 65 0a 20 20 20 |r is to |have. |
|00001b80| 20 61 6c 6c 20 64 69 76 | 69 73 69 6f 6e 73 20 63 | all div|isions c|
|00001b90| 68 65 63 6b 65 64 20 66 | 6f 72 20 61 20 6e 75 6c |hecked f|or a nul|
|00001ba0| 6c 20 71 75 6f 74 69 65 | 6e 74 2e 29 0a 0a 20 20 |l quotie|nt.).. |
|00001bb0| 20 20 43 68 61 72 61 63 | 74 65 72 20 62 79 20 63 | Charac|ter by c|
|00001bc0| 68 61 72 61 63 74 65 72 | 20 74 65 72 6d 69 6e 61 |haracter| termina|
|00001bd0| 6c 20 6d 6f 64 65 20 28 | 63 62 72 65 61 6b 29 20 |l mode (|cbreak) |
|00001be0| 69 73 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |is not a|vailable|
|00001bf0| 0a 20 20 20 20 74 68 72 | 6f 75 67 68 20 74 68 65 |. thr|ough the|
|00001c00| 20 70 6c 6f 74 74 69 6e | 67 20 70 72 6f 67 72 61 | plottin|g progra|
|00001c10| 6d 20 70 69 70 65 2e 20 | 41 20 28 6c 65 73 73 20 |m pipe. |A (less |
|00001c20| 70 6f 72 74 61 62 6c 65 | 29 20 70 73 65 75 64 6f |portable|) pseudo|
|00001c30| 0a 20 20 20 20 74 65 72 | 6d 69 6e 61 6c 20 63 6f |. ter|minal co|
|00001c40| 75 6c 64 20 62 65 20 75 | 73 65 64 20 66 6f 72 20 |uld be u|sed for |
|00001c50| 74 68 65 20 70 6c 6f 74 | 74 69 6e 67 20 70 72 6f |the plot|ting pro|
|00001c60| 67 72 61 6d 2e 0a 0a 20 | 20 20 20 54 68 65 20 73 |gram... | The s|
|00001c70| 74 61 63 6b 20 61 6e 64 | 20 6d 61 63 68 69 6e 65 |tack and| machine|
|00001c80| 20 63 6f 75 6c 64 20 70 | 72 6f 62 61 62 6c 79 20 | could p|robably |
|00001c90| 62 65 20 61 6c 6c 6f 63 | 61 74 65 64 20 64 79 6e |be alloc|ated dyn|
|00001ca0| 61 6d 69 63 61 6c 6c 79 | 2e 0a 20 20 20 20 48 6f |amically|.. Ho|
|00001cb0| 77 65 76 65 72 2c 20 72 | 65 63 75 72 73 69 76 65 |wever, r|ecursive|
|00001cc0| 20 6c 6f 6f 70 73 20 77 | 6f 75 6c 64 20 6d 61 6b | loops w|ould mak|
|00001cd0| 65 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 74 6f |e the pr|ogram to|
|00001ce0| 20 62 65 20 6b 69 6c 6c | 65 64 0a 20 20 20 20 62 | be kill|ed. b|
|00001cf0| 79 20 69 6e 69 74 20 66 | 6f 72 20 65 6e 76 61 64 |y init f|or envad|
|00001d00| 69 6e 67 20 74 68 65 20 | 73 77 61 70 20 73 70 61 |ing the |swap spa|
|00001d10| 63 65 2e 0a 0a 20 20 20 | 20 52 65 64 65 66 69 6e |ce... | Redefin|
|00001d20| 65 64 20 66 75 6e 63 74 | 69 6f 6e 73 20 64 6f 20 |ed funct|ions do |
|00001d30| 6e 6f 74 20 66 72 65 65 | 20 74 68 65 20 70 61 72 |not free| the par|
|00001d40| 74 20 74 68 65 79 20 77 | 65 72 65 20 70 72 65 76 |t they w|ere prev|
|00001d50| 69 6f 75 73 6c 79 0a 20 | 20 20 20 6f 63 63 75 70 |iously. | occup|
|00001d60| 79 69 6e 67 20 6f 6e 20 | 74 68 65 20 6d 61 63 68 |ying on |the mach|
|00001d70| 69 6e 65 20 73 70 61 63 | 65 2c 20 62 75 74 20 74 |ine spac|e, but t|
|00001d80| 68 69 73 20 6d 65 6d 6f | 72 79 20 6c 65 61 6b 20 |his memo|ry leak |
|00001d90| 69 73 20 6e 6f 74 0a 20 | 20 20 20 73 69 67 6e 69 |is not. | signi|
|00001da0| 66 69 63 61 6e 74 20 6f | 76 65 72 20 61 20 6e 6f |ficant o|ver a no|
|00001db0| 72 6d 61 6c 20 73 65 73 | 73 69 6f 6e 2e 0a 0a 5c |rmal ses|sion...\|
|00001dc0| 73 65 63 74 69 6f 6e 7b | 43 72 65 64 69 74 73 7d |section{|Credits}|
|00001dd0| 0a 0a 5c 69 6e 70 75 74 | 7b 63 72 65 64 69 74 73 |..\input|{credits|
|00001de0| 2e 74 65 78 7d 0a 0a 5c | 63 68 61 70 74 65 72 7b |.tex}..\|chapter{|
|00001df0| 54 75 74 6f 72 69 61 6c | 7d 0a 54 68 65 20 66 6f |Tutorial|}.The fo|
|00001e00| 6c 6c 6f 77 69 6e 67 20 | 73 65 63 74 69 6f 6e 73 |llowing |sections|
|00001e10| 20 77 69 6c 6c 20 64 65 | 61 6c 20 77 69 74 68 20 | will de|al with |
|00001e20| 73 65 76 65 72 61 6c 20 | 61 70 70 6c 69 63 61 74 |several |applicat|
|00001e30| 69 6f 6e 73 20 6f 66 20 | 5c 66 75 64 67 69 74 2e |ions of |\fudgit.|
|00001e40| 0a 54 68 65 20 6d 61 69 | 6e 20 73 74 72 65 6e 67 |.The mai|n streng|
|00001e50| 74 68 20 6f 66 20 5c 66 | 75 64 67 69 74 5c 20 72 |th of \f|udgit\ r|
|00001e60| 65 5c 2d 73 69 64 65 73 | 20 69 6e 20 69 74 73 20 |e\-sides| in its |
|00001e70| 63 61 70 61 63 69 74 79 | 20 6f 66 20 66 69 74 74 |capacity| of fitt|
|00001e80| 69 6e 67 0a 61 6e 64 20 | 73 70 6c 69 74 74 69 6e |ing.and |splittin|
|00001e90| 67 20 6d 75 6c 74 69 70 | 6c 65 20 66 69 6c 65 73 |g multip|le files|
|00001ea0| 2e 20 54 68 69 73 20 6b | 69 6e 64 20 6f 66 20 61 |. This k|ind of a|
|00001eb0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 63 61 6e 6e |pplicati|ons cann|
|00001ec0| 6f 74 20 62 65 0a 64 6f | 6e 65 20 62 79 20 61 20 |ot be.do|ne by a |
|00001ed0| 6d 6f 75 73 65 20 64 72 | 69 76 65 6e 20 70 72 6f |mouse dr|iven pro|
|00001ee0| 67 72 61 6d 20 73 69 6e | 63 65 20 0a 63 6f 6d 6d |gram sin|ce .comm|
|00001ef0| 61 6e 64 73 20 63 61 6e | 20 72 61 72 65 6c 79 20 |ands can| rarely |
|00001f00| 62 65 20 61 75 74 6f 6d | 61 74 65 64 20 69 6e 20 |be autom|ated in |
|00001f10| 73 75 63 68 20 70 72 6f | 67 72 61 6d 73 2e 0a 5c |such pro|grams..\|
|00001f20| 66 75 64 67 69 74 5c 20 | 61 6c 6c 6f 77 73 20 74 |fudgit\ |allows t|
|00001f30| 68 65 20 75 73 65 72 20 | 74 6f 20 62 75 69 6c 64 |he user |to build|
|00001f40| 20 73 63 72 69 70 74 73 | 20 77 68 69 63 68 20 63 | scripts| which c|
|00001f50| 61 6e 20 61 75 74 6f 6d | 61 74 65 0a 61 20 70 72 |an autom|ate.a pr|
|00001f60| 6f 63 65 73 73 20 74 68 | 61 74 20 70 65 72 66 6f |ocess th|at perfo|
|00001f70| 72 6d 73 20 74 68 65 20 | 61 76 61 69 6c 61 62 6c |rms the |availabl|
|00001f80| 65 20 66 75 6e 63 74 69 | 6f 6e 73 20 6f 72 20 75 |e functi|ons or u|
|00001f90| 73 65 72 2d 64 65 66 69 | 6e 65 64 20 66 75 6e 63 |ser-defi|ned func|
|00001fa0| 74 69 6f 6e 73 0a 6f 72 | 20 6d 61 63 72 6f 73 20 |tions.or| macros |
|00001fb0| 6f 76 65 72 20 73 65 76 | 65 72 61 6c 20 64 61 74 |over sev|eral dat|
|00001fc0| 61 20 66 69 6c 65 73 2e | 20 54 68 65 20 73 79 6e |a files.| The syn|
|00001fd0| 74 61 78 20 69 73 20 76 | 65 72 79 20 63 6c 6f 73 |tax is v|ery clos|
|00001fe0| 65 20 74 6f 20 43 2d 73 | 68 65 6c 6c 20 61 6e 64 |e to C-s|hell and|
|00001ff0| 0a 6d 6f 73 74 20 6f 66 | 20 43 2d 73 68 65 6c 6c |.most of| C-shell|
|00002000| 20 75 73 65 72 73 20 77 | 69 6c 6c 20 6f 6e 6c 79 | users w|ill only|
|00002010| 20 68 61 76 65 20 74 6f | 20 69 6e 74 75 69 74 69 | have to| intuiti|
|00002020| 76 65 6c 79 20 61 70 70 | 6c 79 20 74 68 65 69 72 |vely app|ly their|
|00002030| 20 6b 6e 6f 77 6c 65 64 | 67 65 0a 74 6f 20 74 68 | knowled|ge.to th|
|00002040| 65 20 63 75 72 72 65 6e | 74 20 66 69 74 74 69 6e |e curren|t fittin|
|00002050| 67 20 6d 6f 64 65 20 73 | 68 65 6c 6c 2e 20 50 61 |g mode s|hell. Pa|
|00002060| 72 61 6c 6c 65 6c 20 74 | 6f 20 74 68 69 73 20 73 |rallel t|o this s|
|00002070| 68 65 6c 6c 0a 69 73 20 | 61 20 62 75 69 6c 74 2d |hell.is |a built-|
|00002080| 69 6e 20 63 61 6c 63 75 | 6c 61 74 6f 72 20 77 68 |in calcu|lator wh|
|00002090| 69 63 68 20 69 6e 0a 66 | 61 63 74 20 69 73 20 61 |ich in.f|act is a|
|000020a0| 20 62 61 73 69 63 20 43 | 20 69 6e 74 65 72 70 72 | basic C| interpr|
|000020b0| 65 74 65 72 20 73 75 70 | 70 6f 72 74 69 6e 67 20 |eter sup|porting |
|000020c0| 6d 6f 73 74 20 6f 66 20 | 74 68 65 20 43 20 6d 61 |most of |the C ma|
|000020d0| 74 68 20 6c 69 62 72 61 | 72 79 2c 0a 70 6c 75 73 |th libra|ry,.plus|
|000020e0| 20 73 6f 6d 65 20 61 64 | 64 69 74 69 6f 6e 61 6c | some ad|ditional|
|000020f0| 20 66 65 61 74 75 72 65 | 73 2e 0a 54 68 65 20 70 | feature|s..The p|
|00002100| 61 72 74 69 63 75 6c 61 | 72 69 74 79 20 6f 66 20 |articula|rity of |
|00002110| 5c 66 75 64 67 69 74 5c | 20 63 6f 6d 65 73 20 66 |\fudgit\| comes f|
|00002120| 72 6f 6d 20 74 68 65 20 | 66 61 63 74 0a 74 68 61 |rom the |fact.tha|
|00002130| 74 20 67 6c 6f 62 61 6c | 20 76 61 72 69 61 62 6c |t global| variabl|
|00002140| 65 73 20 61 72 65 20 63 | 6f 6d 6d 6f 6e 20 74 6f |es are c|ommon to|
|00002150| 20 62 6f 74 68 20 74 68 | 65 20 43 2d 63 61 6c 63 | both th|e C-calc|
|00002160| 75 6c 61 74 6f 72 0a 61 | 6e 64 20 74 68 65 20 63 |ulator.a|nd the c|
|00002170| 6f 6d 6d 61 6e 64 20 73 | 68 65 6c 6c 2e 0a 4f 6e |ommand s|hell..On|
|00002180| 63 65 20 61 67 61 69 6e | 2c 20 61 20 6d 69 6e 69 |ce again|, a mini|
|00002190| 6d 75 6d 20 6b 6e 6f 77 | 6c 65 64 67 65 0a 6f 66 |mum know|ledge.of|
|000021a0| 20 43 20 77 69 6c 6c 20 | 73 75 66 66 69 63 65 20 | C will |suffice |
|000021b0| 74 6f 20 77 72 69 74 65 | 20 73 68 6f 72 74 20 70 |to write| short p|
|000021c0| 72 6f 67 72 61 6d 73 20 | 75 73 69 6e 67 20 74 68 |rograms |using th|
|000021d0| 65 20 43 2d 63 61 6c 63 | 75 6c 61 74 6f 72 2e 0a |e C-calc|ulator..|
|000021e0| 0a 54 6f 20 6d 61 6b 65 | 20 61 20 72 6f 75 67 68 |.To make| a rough|
|000021f0| 20 70 69 63 74 75 72 65 | 2c 20 6f 6e 65 20 63 61 | picture|, one ca|
|00002200| 6e 20 73 61 79 20 74 68 | 61 74 20 5c 66 75 64 67 |n say th|at \fudg|
|00002210| 69 74 5c 20 75 73 65 73 | 20 43 2d 73 68 65 6c 6c |it\ uses| C-shell|
|00002220| 0a 73 79 6e 74 61 78 20 | 74 6f 20 64 65 61 6c 20 |.syntax |to deal |
|00002230| 77 69 74 68 20 66 69 6c | 65 73 2c 20 43 20 73 79 |with fil|es, C sy|
|00002240| 6e 74 61 78 20 74 6f 20 | 64 65 61 6c 20 77 69 74 |ntax to |deal wit|
|00002250| 68 20 76 65 63 74 6f 72 | 73 2c 20 6e 75 6d 62 65 |h vector|s, numbe|
|00002260| 72 73 0a 61 6e 64 20 73 | 74 72 69 6e 67 73 2c 20 |rs.and s|trings, |
|00002270| 61 6e 64 20 74 68 65 20 | 6c 61 6e 67 75 61 67 65 |and the |language|
|00002280| 20 6f 66 20 79 6f 75 72 | 20 66 61 76 6f 72 69 74 | of your| favorit|
|00002290| 65 20 70 6c 6f 74 74 69 | 6e 67 20 70 72 6f 67 72 |e plotti|ng progr|
|000022a0| 61 6d 20 66 6f 72 0a 70 | 6c 6f 74 74 69 6e 67 2e |am for.p|lotting.|
|000022b0| 0a 0a 5c 73 65 63 74 69 | 6f 6e 7b 50 72 65 72 65 |..\secti|on{Prere|
|000022c0| 71 75 69 73 69 74 65 20 | 4b 6e 6f 77 6c 65 64 67 |quisite |Knowledg|
|000022d0| 65 7d 0a 20 20 20 20 54 | 6f 20 72 65 61 64 20 74 |e}. T|o read t|
|000022e0| 68 69 73 20 6d 61 6e 75 | 61 6c 2c 20 74 68 65 20 |his manu|al, the |
|000022f0| 72 65 61 64 65 72 20 73 | 68 6f 75 6c 64 20 68 61 |reader s|hould ha|
|00002300| 76 65 20 61 20 6d 69 6e | 69 6d 61 6c 0a 20 20 20 |ve a min|imal. |
|00002310| 20 6b 6e 6f 77 6c 65 64 | 67 65 20 6f 66 20 43 20 | knowled|ge of C |
|00002320| 70 72 6f 67 72 61 6d 6d | 69 6e 67 2e 20 53 70 65 |programm|ing. Spe|
|00002330| 63 69 66 69 63 61 6c 6c | 79 2c 20 74 68 65 20 75 |cificall|y, the u|
|00002340| 73 65 72 20 73 68 6f 75 | 6c 64 0a 20 20 20 20 75 |ser shou|ld. u|
|00002350| 6e 64 65 72 73 74 61 6e | 64 20 74 68 65 20 62 61 |nderstan|d the ba|
|00002360| 73 69 63 73 20 6f 66 20 | 7b 5c 74 74 20 69 66 7d |sics of |{\tt if}|
|00002370| 2c 20 7b 5c 74 74 20 65 | 6c 73 65 7d 2c 20 7b 5c |, {\tt e|lse}, {\|
|00002380| 74 74 20 77 68 69 6c 65 | 7d 20 61 6e 64 0a 20 20 |tt while|} and. |
|00002390| 20 20 7b 5c 74 74 20 66 | 6f 72 7d 20 63 6f 6e 73 | {\tt f|or} cons|
|000023a0| 74 72 75 63 74 69 6f 6e | 73 2e 20 41 20 62 61 73 |truction|s. A bas|
|000023b0| 69 63 20 6b 6e 6f 77 6c | 65 64 67 65 20 6f 66 20 |ic knowl|edge of |
|000023c0| 43 20 6f 70 65 72 61 74 | 6f 72 73 20 0a 20 20 20 |C operat|ors . |
|000023d0| 20 77 6f 75 6c 64 20 61 | 6c 73 6f 20 62 65 20 70 | would a|lso be p|
|000023e0| 72 65 66 65 72 61 62 6c | 65 2e 0a 20 20 20 20 0a |referabl|e.. .|
|000023f0| 20 20 20 20 41 20 66 61 | 6d 69 6c 69 61 72 69 74 | A fa|miliarit|
|00002400| 79 20 77 69 74 68 20 5c | 75 6e 69 78 5c 20 7b 5c |y with \|unix\ {\|
|00002410| 69 74 20 63 73 68 7d 20 | 63 6f 6d 6d 61 6e 64 20 |it csh} |command |
|00002420| 77 6f 75 6c 64 0a 20 20 | 20 20 62 65 20 68 65 6c |would. | be hel|
|00002430| 70 66 75 6c 2c 20 70 61 | 72 74 69 63 75 6c 61 72 |pful, pa|rticular|
|00002440| 6c 79 20 69 66 20 79 6f | 75 20 6b 6e 6f 77 20 74 |ly if yo|u know t|
|00002450| 68 65 20 43 2d 73 68 65 | 6c 6c 0a 20 20 20 20 7b |he C-she|ll. {|
|00002460| 5c 74 74 20 69 66 7d 2c | 20 7b 5c 74 74 20 77 68 |\tt if},| {\tt wh|
|00002470| 69 6c 65 7d 20 61 6e 64 | 20 7b 5c 74 74 20 66 6f |ile} and| {\tt fo|
|00002480| 72 65 61 63 68 7d 20 63 | 6f 6e 73 74 72 75 63 74 |reach} c|onstruct|
|00002490| 69 6f 6e 73 2c 20 0a 20 | 20 20 20 61 73 20 77 65 |ions, . | as we|
|000024a0| 6c 6c 20 61 73 20 61 6c | 69 61 73 65 73 2c 20 61 |ll as al|iases, a|
|000024b0| 6e 64 20 73 74 72 69 6e | 67 20 76 61 72 69 61 62 |nd strin|g variab|
|000024c0| 6c 65 20 73 75 62 73 74 | 69 74 75 74 69 6f 6e 73 |le subst|itutions|
|000024d0| 2e 0a 20 20 20 20 55 73 | 65 72 73 20 61 6c 72 65 |.. Us|ers alre|
|000024e0| 61 64 79 20 66 61 6d 69 | 6c 69 61 72 20 77 69 74 |ady fami|liar wit|
|000024f0| 68 20 28 61 6e 64 20 70 | 65 72 68 61 70 73 20 61 |h (and p|erhaps a|
|00002500| 64 64 69 63 74 65 64 20 | 74 6f 29 0a 20 20 20 20 |ddicted |to). |
|00002510| 7b 5c 69 74 20 74 63 73 | 68 7d 2d 20 6f 72 20 7b |{\it tcs|h}- or {|
|00002520| 5c 69 74 20 62 61 73 68 | 7d 2d 5c 65 6d 61 63 73 |\it bash|}-\emacs|
|00002530| 2d 20 73 74 79 6c 65 20 | 6c 69 6e 65 20 65 64 69 |- style |line edi|
|00002540| 74 69 6e 67 20 77 69 6c | 6c 20 0a 20 20 20 20 66 |ting wil|l . f|
|00002550| 65 65 6c 20 61 74 20 68 | 6f 6d 65 2e 0a 0a 20 20 |eel at h|ome... |
|00002560| 20 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 6e | Howeve|r, the n|
|00002570| 6f 76 69 63 65 20 72 65 | 61 64 65 72 20 73 68 6f |ovice re|ader sho|
|00002580| 75 6c 64 20 6f 6e 6c 79 | 20 72 65 66 65 72 20 74 |uld only| refer t|
|00002590| 6f 20 61 20 43 20 62 6f | 6f 6b 0a 20 20 20 20 74 |o a C bo|ok. t|
|000025a0| 6f 20 75 6e 64 65 72 73 | 74 61 6e 64 20 6f 70 65 |o unders|tand ope|
|000025b0| 72 61 74 6f 72 73 20 73 | 70 65 63 69 66 69 63 20 |rators s|pecific |
|000025c0| 74 6f 20 43 2e 20 41 6c | 6c 20 74 68 65 20 72 65 |to C. Al|l the re|
|000025d0| 73 74 20 6f 66 0a 20 20 | 20 20 77 68 61 74 20 73 |st of. | what s|
|000025e0| 68 6f 75 6c 64 20 62 65 | 20 6b 6e 6f 77 6e 20 69 |hould be| known i|
|000025f0| 73 20 66 75 6c 6c 79 20 | 63 6f 76 65 72 65 64 20 |s fully |covered |
|00002600| 62 79 20 74 68 69 73 20 | 6d 61 6e 75 61 6c 2e 0a |by this |manual..|
|00002610| 0a 20 20 20 20 49 74 20 | 69 73 20 61 6c 73 6f 20 |. It |is also |
|00002620| 75 6e 64 65 72 73 74 6f | 6f 64 20 74 68 61 74 20 |understo|od that |
|00002630| 79 6f 75 20 61 6c 72 65 | 61 64 79 20 6b 6e 6f 77 |you alre|ady know|
|00002640| 20 74 68 65 20 70 6c 6f | 74 74 69 6e 67 20 70 72 | the plo|tting pr|
|00002650| 6f 67 72 61 6d 0a 20 20 | 20 20 79 6f 75 20 61 72 |ogram. | you ar|
|00002660| 65 20 67 6f 69 6e 67 20 | 74 6f 20 6c 69 6e 6b 20 |e going |to link |
|00002670| 74 6f 20 5c 66 75 64 67 | 69 74 2e 0a 0a 5c 73 65 |to \fudg|it...\se|
|00002680| 63 74 69 6f 6e 7b 54 68 | 65 20 44 69 66 66 65 72 |ction{Th|e Differ|
|00002690| 65 6e 74 20 4d 6f 64 65 | 73 7d 0a 20 20 20 20 5c |ent Mode|s}. \|
|000026a0| 66 75 64 67 69 74 5c 20 | 69 73 20 63 6f 6d 70 6f |fudgit\ |is compo|
|000026b0| 73 65 64 20 6f 66 20 74 | 68 72 65 65 20 64 69 66 |sed of t|hree dif|
|000026c0| 66 65 72 65 6e 74 20 6d | 6f 64 65 73 2e 20 54 68 |ferent m|odes. Th|
|000026d0| 65 73 65 20 6d 6f 64 65 | 73 20 63 61 6e 0a 20 20 |ese mode|s can. |
|000026e0| 20 20 62 65 20 74 68 6f | 75 67 68 74 20 6f 66 20 | be tho|ught of |
|000026f0| 61 73 20 28 31 29 20 61 | 20 43 2d 73 68 65 6c 6c |as (1) a| C-shell|
|00002700| 20 6c 69 6b 65 20 69 6e | 74 65 72 70 72 65 74 65 | like in|terprete|
|00002710| 72 20 6c 69 6e 6b 65 64 | 20 77 69 74 68 0a 20 20 |r linked| with. |
|00002720| 20 20 28 32 29 20 61 20 | 43 2d 63 61 6c 63 75 6c | (2) a |C-calcul|
|00002730| 61 74 6f 72 2c 0a 20 20 | 20 20 73 68 61 72 69 6e |ator,. | sharin|
|00002740| 67 20 74 68 65 20 73 61 | 6d 65 20 76 61 72 69 61 |g the sa|me varia|
|00002750| 62 6c 65 73 20 69 6e 20 | 6d 65 6d 6f 72 79 2c 20 |bles in |memory, |
|00002760| 61 6e 64 20 77 69 74 68 | 20 28 33 29 20 61 20 70 |and with| (3) a p|
|00002770| 6c 6f 74 74 69 6e 67 20 | 70 72 6f 67 72 61 6d 0a |lotting |program.|
|00002780| 20 20 20 20 6f 66 20 79 | 6f 75 72 20 63 68 6f 69 | of y|our choi|
|00002790| 63 65 2e 20 0a 0a 20 20 | 20 20 4d 6f 73 74 20 6f |ce. .. | Most o|
|000027a0| 66 20 74 68 65 20 74 69 | 6d 65 2c 20 63 6f 6d 6d |f the ti|me, comm|
|000027b0| 61 6e 64 73 20 6f 66 20 | 64 69 66 66 65 72 65 6e |ands of |differen|
|000027c0| 74 20 6d 6f 64 65 73 20 | 77 69 6c 6c 0a 20 20 20 |t modes |will. |
|000027d0| 20 62 65 20 69 6e 74 65 | 72 6c 61 63 65 64 20 61 | be inte|rlaced a|
|000027e0| 73 20 74 68 65 79 20 61 | 72 65 20 67 69 76 65 6e |s they a|re given|
|000027f0| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | on the |command |
|00002800| 6c 69 6e 65 2e 0a 20 20 | 20 20 48 6f 77 65 76 65 |line.. | Howeve|
|00002810| 72 2c 20 74 68 65 20 70 | 72 65 73 65 6e 74 20 6d |r, the p|resent m|
|00002820| 61 6e 75 61 6c 20 73 74 | 61 72 74 73 0a 20 20 20 |anual st|arts. |
|00002830| 20 62 79 20 67 69 76 69 | 6e 67 20 61 20 73 65 70 | by givi|ng a sep|
|00002840| 61 72 61 74 65 20 64 65 | 73 63 72 69 70 74 69 6f |arate de|scriptio|
|00002850| 6e 0a 20 20 20 20 6f 66 | 20 74 68 65 20 64 69 66 |n. of| the dif|
|00002860| 66 65 72 65 6e 74 20 6d | 6f 64 65 73 2e 0a 20 20 |ferent m|odes.. |
|00002870| 20 20 49 6e 20 74 68 65 | 20 72 65 66 65 72 65 6e | In the| referen|
|00002880| 63 65 20 6d 61 6e 75 61 | 6c 2c 20 77 65 20 61 73 |ce manua|l, we as|
|00002890| 73 75 6d 65 20 74 68 61 | 74 20 74 68 65 20 64 69 |sume tha|t the di|
|000028a0| 66 66 65 72 65 6e 74 0a | 20 20 20 20 6d 6f 64 65 |fferent.| mode|
|000028b0| 73 20 61 72 65 20 77 65 | 6c 6c 20 75 6e 64 65 72 |s are we|ll under|
|000028c0| 73 74 6f 6f 64 20 73 6f | 20 74 68 61 74 0a 20 20 |stood so| that. |
|000028d0| 20 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 73 20 61 | the co|mmands a|
|000028e0| 72 65 20 64 65 73 63 72 | 69 62 65 64 20 77 69 74 |re descr|ibed wit|
|000028f0| 68 6f 75 74 20 64 69 73 | 74 69 6e 63 74 69 6f 6e |hout dis|tinction|
|00002900| 2c 0a 20 20 20 20 61 73 | 20 74 68 65 79 20 77 6f |,. as| they wo|
|00002910| 75 6c 64 20 62 65 20 75 | 73 65 64 2c 20 61 6e 64 |uld be u|sed, and|
|00002920| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 6c 79 20 6f | indepen|dently o|
|00002930| 66 20 74 68 65 69 72 0a | 20 20 20 20 6f 72 69 67 |f their.| orig|
|00002940| 69 6e 61 74 69 6e 67 20 | 6d 6f 64 65 2e 0a 0a 5c |inating |mode...\|
|00002950| 73 75 62 73 65 63 74 69 | 6f 6e 7b 54 68 65 20 46 |subsecti|on{The F|
|00002960| 69 74 74 69 6e 67 20 4d | 6f 64 65 7d 20 20 20 20 |itting M|ode} |
|00002970| 0a 20 20 20 20 54 68 65 | 20 43 2d 73 68 65 6c 6c |. The| C-shell|
|00002980| 20 6c 69 6b 65 20 69 6e | 74 65 72 70 72 65 74 65 | like in|terprete|
|00002990| 72 20 69 73 20 63 61 6c | 6c 65 64 20 74 68 65 20 |r is cal|led the |
|000029a0| 7b 5c 65 6d 20 66 69 74 | 74 69 6e 67 0a 20 20 20 |{\em fit|ting. |
|000029b0| 20 6d 6f 64 65 7d 2e 0a | 20 20 20 20 49 74 20 69 | mode}..| It i|
|000029c0| 73 20 74 68 65 20 63 65 | 6e 74 72 61 6c 20 6d 6f |s the ce|ntral mo|
|000029d0| 64 65 20 61 6e 64 20 69 | 73 20 74 68 65 20 6f 6e |de and i|s the on|
|000029e0| 65 20 66 72 6f 6d 20 77 | 68 69 63 68 20 61 6c 6c |e from w|hich all|
|000029f0| 20 61 63 63 65 73 73 65 | 73 0a 20 20 20 20 74 6f | accesse|s. to|
|00002a00| 20 64 69 73 6b 20 61 72 | 65 20 64 6f 6e 65 2e 20 | disk ar|e done. |
|00002a10| 54 68 69 73 20 6d 6f 64 | 65 20 68 61 73 20 61 20 |This mod|e has a |
|00002a20| 72 61 6e 67 65 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 |range of| command|
|00002a30| 73 20 61 6c 6c 6f 77 69 | 6e 67 0a 20 20 20 20 74 |s allowi|ng. t|
|00002a40| 68 65 20 75 73 65 72 20 | 74 6f 20 72 65 61 64 20 |he user |to read |
|00002a50| 76 65 63 74 6f 72 73 20 | 66 72 6f 6d 20 6f 72 20 |vectors |from or |
|00002a60| 73 61 76 65 20 76 65 63 | 74 6f 72 73 20 74 6f 20 |save vec|tors to |
|00002a70| 61 20 64 61 74 61 20 66 | 69 6c 65 2c 20 74 6f 20 |a data f|ile, to |
|00002a80| 72 65 61 64 20 61 0a 20 | 20 20 20 63 6f 6d 6d 61 |read a. | comma|
|00002a90| 6e 64 20 73 63 72 69 70 | 74 2c 20 73 61 76 65 20 |nd scrip|t, save |
|00002aa0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 68 69 73 74 |the comm|and hist|
|00002ab0| 6f 72 79 2c 20 64 6f 20 | 74 68 65 20 46 6f 75 72 |ory, do |the Four|
|00002ac0| 69 65 72 0a 20 20 20 20 | 74 72 61 6e 73 66 6f 72 |ier. |transfor|
|00002ad0| 6d 20 6f 66 20 61 20 76 | 65 63 74 6f 72 2c 20 6d |m of a v|ector, m|
|00002ae0| 61 6b 65 20 61 20 6c 69 | 6e 65 61 72 20 6f 72 20 |ake a li|near or |
|00002af0| 6e 6f 6e 6c 69 6e 65 61 | 72 20 6c 65 61 73 74 20 |nonlinea|r least |
|00002b00| 73 71 75 61 72 65 0a 20 | 20 20 20 66 69 74 2c 20 |square. | fit, |
|00002b10| 65 74 63 5c 6c 64 6f 74 | 73 20 54 68 69 73 20 6d |etc\ldot|s This m|
|00002b20| 6f 64 65 20 61 6c 73 6f | 20 61 6c 6c 6f 77 73 20 |ode also| allows |
|00002b30| 74 68 65 20 75 73 65 72 | 20 74 6f 20 64 65 66 69 |the user| to defi|
|00002b40| 6e 65 20 6d 61 63 72 6f | 73 0a 20 20 20 20 61 6e |ne macro|s. an|
|00002b50| 64 20 61 6c 69 61 73 65 | 73 20 61 6e 64 20 74 6f |d aliase|s and to|
|00002b60| 20 70 65 72 66 6f 72 6d | 20 62 61 73 69 63 20 66 | perform| basic f|
|00002b70| 6c 6f 77 20 63 6f 6e 74 | 72 6f 6c 20 6f 76 65 72 |low cont|rol over|
|00002b80| 20 74 68 65 20 73 74 61 | 74 65 6d 65 6e 74 73 2e | the sta|tements.|
|00002b90| 0a 20 20 20 20 41 6c 6c | 20 74 68 65 20 63 6f 6d |. All| the com|
|00002ba0| 6d 61 6e 64 73 20 69 6e | 20 74 68 65 20 66 69 74 |mands in| the fit|
|00002bb0| 74 69 6e 67 20 6d 6f 64 | 65 20 63 61 6e 0a 20 20 |ting mod|e can. |
|00002bc0| 20 20 62 65 20 61 62 62 | 72 65 76 69 61 74 65 64 | be abb|reviated|
|00002bd0| 2e 20 49 74 20 69 73 20 | 77 6f 72 74 68 20 6d 65 |. It is |worth me|
|00002be0| 6e 74 69 6f 6e 69 6e 67 | 20 74 68 61 74 20 69 6e |ntioning| that in|
|00002bf0| 20 74 68 65 20 66 69 74 | 74 69 6e 67 20 6d 6f 64 | the fit|ting mod|
|00002c00| 65 2c 0a 20 20 20 20 74 | 68 65 20 63 6f 6d 6d 61 |e,. t|he comma|
|00002c10| 6e 64 20 6c 69 6e 65 20 | 70 61 72 73 69 6e 67 20 |nd line |parsing |
|00002c20| 69 73 20 64 6f 6e 65 20 | 62 79 20 61 6e 61 6c 79 |is done |by analy|
|00002c30| 7a 69 6e 67 20 77 6f 72 | 64 73 20 73 65 70 61 72 |zing wor|ds separ|
|00002c40| 61 74 65 64 20 62 79 0a | 20 20 20 20 62 6c 61 6e |ated by.| blan|
|00002c50| 6b 73 20 28 73 70 61 63 | 65 73 20 6f 72 20 74 61 |ks (spac|es or ta|
|00002c60| 62 73 29 2c 20 61 73 20 | 69 6e 20 61 6e 20 69 6e |bs), as |in an in|
|00002c70| 74 65 72 61 63 74 69 76 | 65 20 63 73 68 2e 0a 0a |teractiv|e csh...|
|00002c80| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 54 68 65 20 |\subsect|ion{The |
|00002c90| 43 2d 63 61 6c 63 75 6c | 61 74 6f 72 20 4d 6f 64 |C-calcul|ator Mod|
|00002ca0| 65 7d 0a 20 20 20 20 54 | 68 65 20 7b 5c 65 6d 20 |e}. T|he {\em |
|00002cb0| 43 20 6d 6f 64 65 7d 20 | 6f 72 20 7b 5c 65 6d 20 |C mode} |or {\em |
|00002cc0| 43 2d 63 61 6c 63 75 6c | 61 74 6f 72 20 6d 6f 64 |C-calcul|ator mod|
|00002cd0| 65 7d 20 69 73 20 61 0a | 20 20 20 20 6c 61 6e 67 |e} is a.| lang|
|00002ce0| 75 61 67 65 20 69 6e 74 | 65 72 70 72 65 74 65 72 |uage int|erpreter|
|00002cf0| 20 73 75 70 70 6f 72 74 | 69 6e 67 20 6d 6f 73 74 | support|ing most|
|00002d00| 20 6f 66 20 43 20 67 72 | 61 6d 6d 61 72 20 65 78 | of C gr|ammar ex|
|00002d10| 63 65 70 74 0a 20 20 20 | 20 70 6f 69 6e 74 65 72 |cept. | pointer|
|00002d20| 73 2e 20 49 74 20 61 6c | 73 6f 20 73 75 70 70 6f |s. It al|so suppo|
|00002d30| 72 74 73 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 20 |rts most| of the |
|00002d40| 64 6f 75 62 6c 65 2d 70 | 72 65 63 69 73 69 6f 6e |double-p|recision|
|00002d50| 20 43 20 6d 61 74 68 20 | 6c 69 62 72 61 72 79 2e | C math |library.|
|00002d60| 0a 20 20 20 20 54 68 75 | 73 2c 20 72 65 63 6f 67 |. Thu|s, recog|
|00002d70| 6e 69 7a 65 64 20 6b 65 | 79 77 6f 72 64 73 20 63 |nized ke|ywords c|
|00002d80| 61 6e 6e 6f 74 0a 20 20 | 20 20 62 65 20 61 62 62 |annot. | be abb|
|00002d90| 72 65 76 69 61 74 65 64 | 2c 20 61 6e 64 20 74 68 |reviated|, and th|
|00002da0| 65 20 64 69 66 66 65 72 | 65 6e 74 20 74 6f 6b 65 |e differ|ent toke|
|00002db0| 6e 73 20 6e 65 65 64 20 | 6e 6f 74 20 62 65 0a 20 |ns need |not be. |
|00002dc0| 20 20 20 73 65 70 61 72 | 61 74 65 64 2e 20 4d 6f | separ|ated. Mo|
|00002dd0| 73 74 20 6f 66 20 74 68 | 65 20 43 20 6f 70 65 72 |st of th|e C oper|
|00002de0| 61 74 6f 72 73 20 61 6e | 64 20 6b 65 79 77 6f 72 |ators an|d keywor|
|00002df0| 64 73 20 61 72 65 20 75 | 6e 64 65 72 73 74 6f 6f |ds are u|nderstoo|
|00002e00| 64 0a 20 20 20 20 61 6e | 64 20 61 20 66 65 77 20 |d. an|d a few |
|00002e10| 65 78 74 72 61 20 6f 70 | 65 72 61 74 6f 72 73 20 |extra op|erators |
|00002e20| 68 61 76 65 20 62 65 65 | 6e 20 61 64 64 65 64 2e |have bee|n added.|
|00002e30| 20 54 68 69 73 20 6d 6f | 64 65 20 64 6f 65 73 0a | This mo|de does.|
|00002e40| 20 20 20 20 65 73 73 65 | 6e 74 69 61 6c 6c 79 20 | esse|ntially |
|00002e50| 61 6c 6c 20 74 68 65 20 | 70 6f 73 73 69 62 6c 65 |all the |possible|
|00002e60| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 20 6f 6e | calcula|tions on|
|00002e70| 20 73 63 61 6c 61 72 20 | 76 61 72 69 61 62 6c 65 | scalar |variable|
|00002e80| 73 20 61 6e 64 20 76 65 | 63 74 6f 72 73 2e 0a 20 |s and ve|ctors.. |
|00002e90| 20 20 20 52 65 63 75 72 | 73 69 76 65 20 66 75 6e | Recur|sive fun|
|00002ea0| 63 74 69 6f 6e 73 20 61 | 6e 64 20 70 72 6f 63 65 |ctions a|nd proce|
|00002eb0| 64 75 72 65 73 20 63 61 | 6e 20 62 65 20 64 65 66 |dures ca|n be def|
|00002ec0| 69 6e 65 64 20 61 73 20 | 77 65 6c 6c 2e 0a 20 20 |ined as |well.. |
|00002ed0| 20 20 53 69 6e 63 65 20 | 61 6c 6c 20 6e 75 6d 65 | Since |all nume|
|00002ee0| 72 69 63 20 76 61 72 69 | 61 62 6c 65 73 20 61 72 |ric vari|ables ar|
|00002ef0| 65 20 64 6f 75 62 6c 65 | 20 70 72 65 63 69 73 69 |e double| precisi|
|00002f00| 6f 6e 20 6e 75 6d 62 65 | 72 73 2c 0a 20 20 20 20 |on numbe|rs,. |
|00002f10| 43 20 7b 5c 74 74 20 73 | 77 69 74 63 68 7d 20 63 |C {\tt s|witch} c|
|00002f20| 6f 6e 73 74 72 75 63 74 | 69 6f 6e 73 20 77 65 72 |onstruct|ions wer|
|00002f30| 65 20 6e 6f 74 20 69 6d | 70 6c 65 6d 65 6e 74 65 |e not im|plemente|
|00002f40| 64 2e 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |d...\sub|section{|
|00002f50| 54 68 65 20 50 6c 6f 74 | 74 69 6e 67 20 4d 6f 64 |The Plot|ting Mod|
|00002f60| 65 7d 0a 20 20 20 20 54 | 68 65 20 7b 5c 65 6d 20 |e}. T|he {\em |
|00002f70| 70 6c 6f 74 74 69 6e 67 | 20 6d 6f 64 65 7d 20 69 |plotting| mode} i|
|00002f80| 73 20 61 20 63 68 61 6e | 6e 65 6c 20 74 61 6c 6b |s a chan|nel talk|
|00002f90| 69 6e 67 20 64 69 72 65 | 63 74 6c 79 20 74 6f 20 |ing dire|ctly to |
|00002fa0| 74 68 65 0a 20 20 20 20 | 70 6c 6f 74 74 69 6e 67 |the. |plotting|
|00002fb0| 20 70 72 6f 67 72 61 6d | 20 6f 66 20 79 6f 75 72 | program| of your|
|00002fc0| 20 63 68 6f 69 63 65 2e | 20 54 68 65 72 65 66 6f | choice.| Therefo|
|00002fd0| 72 65 2c 20 5c 66 75 64 | 67 69 74 5c 20 63 61 6e |re, \fud|git\ can|
|00002fe0| 20 73 65 72 76 65 0a 20 | 20 20 20 61 73 20 61 20 | serve. | as a |
|00002ff0| 66 72 6f 6e 74 20 65 6e | 64 20 74 6f 20 61 6e 79 |front en|d to any|
|00003000| 20 70 6c 6f 74 74 69 6e | 67 20 70 72 6f 67 72 61 | plottin|g progra|
|00003010| 6d 20 61 62 6c 65 20 74 | 6f 20 61 63 63 65 70 74 |m able t|o accept|
|00003020| 20 69 6e 70 75 74 0a 20 | 20 20 20 66 72 6f 6d 20 | input. | from |
|00003030| 73 74 64 69 6e 2e 20 54 | 68 69 73 20 77 61 79 2c |stdin. T|his way,|
|00003040| 20 76 65 63 74 6f 72 73 | 0a 20 20 20 20 63 61 6e | vectors|. can|
|00003050| 20 62 65 20 62 75 69 6c | 74 20 66 72 6f 6d 20 74 | be buil|t from t|
|00003060| 68 65 20 43 2d 63 61 6c | 63 75 6c 61 74 6f 72 20 |he C-cal|culator |
|00003070| 61 6e 64 20 74 68 65 6e | 20 70 6c 6f 74 74 65 64 |and then| plotted|
|00003080| 20 62 79 20 79 6f 75 72 | 0a 20 20 20 20 66 61 76 | by your|. fav|
|00003090| 6f 72 69 74 65 20 70 6c | 6f 74 74 69 6e 67 20 70 |orite pl|otting p|
|000030a0| 72 6f 67 72 61 6d 20 28 | 65 2e 67 2e 20 73 75 70 |rogram (|e.g. sup|
|000030b0| 65 72 20 6d 6f 6e 67 6f | 2c 20 69 72 69 73 70 6c |er mongo|, irispl|
|000030c0| 6f 74 2c 20 5c 73 67 69 | 70 6c 6f 74 2c 0a 20 20 |ot, \sgi|plot,. |
|000030d0| 20 20 70 6c 6f 74 2c 20 | 5c 67 6e 75 70 6c 6f 74 | plot, |\gnuplot|
|000030e0| 2c 20 65 74 63 5c 6c 64 | 6f 74 73 29 2e 20 54 68 |, etc\ld|ots). Th|
|000030f0| 65 20 64 65 66 61 75 6c | 74 20 70 6c 6f 74 74 69 |e defaul|t plotti|
|00003100| 6e 67 20 70 72 6f 67 72 | 61 6d 20 69 73 0a 20 20 |ng progr|am is. |
|00003110| 20 20 5c 67 6e 75 70 6c | 6f 74 2e 0a 0a 5c 73 65 | \gnupl|ot...\se|
|00003120| 63 74 69 6f 6e 7b 43 68 | 61 6e 67 69 6e 67 20 66 |ction{Ch|anging f|
|00003130| 72 6f 6d 20 6f 6e 65 20 | 4d 6f 64 65 20 74 6f 20 |rom one |Mode to |
|00003140| 41 6e 6f 74 68 65 72 7d | 0a 20 20 20 20 54 68 65 |Another}|. The|
|00003150| 20 66 69 74 74 69 6e 67 | 20 6d 6f 64 65 20 69 73 | fitting| mode is|
|00003160| 20 74 68 65 20 63 65 6e | 74 72 61 6c 20 6d 6f 64 | the cen|tral mod|
|00003170| 65 20 66 72 6f 6d 20 77 | 68 69 63 68 20 74 68 65 |e from w|hich the|
|00003180| 20 74 77 6f 20 6f 74 68 | 65 72 0a 20 20 20 20 6d | two oth|er. m|
|00003190| 6f 64 65 73 20 61 72 65 | 20 61 63 63 65 73 73 65 |odes are| accesse|
|000031a0| 64 2e 20 54 68 75 73 2c | 20 6f 6e 65 20 63 61 6e |d. Thus,| one can|
|000031b0| 6e 6f 74 20 63 68 61 6e | 67 65 20 66 72 6f 6d 20 |not chan|ge from |
|000031c0| 74 68 65 20 43 2d 63 61 | 6c 63 75 6c 61 74 6f 72 |the C-ca|lculator|
|000031d0| 0a 20 20 20 20 6d 6f 64 | 65 20 74 6f 20 74 68 65 |. mod|e to the|
|000031e0| 20 70 6c 6f 74 74 69 6e | 67 20 6d 6f 64 65 20 77 | plottin|g mode w|
|000031f0| 69 74 68 6f 75 74 20 67 | 6f 69 6e 67 20 74 68 72 |ithout g|oing thr|
|00003200| 6f 75 67 68 20 74 68 65 | 20 66 69 74 74 69 6e 67 |ough the| fitting|
|00003210| 20 6d 6f 64 65 2e 0a 20 | 20 20 20 54 68 65 20 6d | mode.. | The m|
|00003220| 6f 64 65 20 63 68 61 6e | 67 69 6e 67 20 63 6f 6d |ode chan|ging com|
|00003230| 6d 61 6e 64 73 20 61 72 | 65 20 6d 6e 65 6d 6f 6e |mands ar|e mnemon|
|00003240| 69 63 61 6c 6c 79 20 63 | 61 6c 6c 65 64 20 7b 5c |ically c|alled {\|
|00003250| 74 74 20 63 6d 6f 64 65 | 7d 20 66 6f 72 0a 20 20 |tt cmode|} for. |
|00003260| 20 20 63 68 61 6e 67 69 | 6e 67 20 74 6f 20 74 68 | changi|ng to th|
|00003270| 65 20 43 2d 63 61 6c 63 | 75 6c 61 74 6f 72 20 6d |e C-calc|ulator m|
|00003280| 6f 64 65 2c 20 7b 5c 74 | 74 20 70 6d 6f 64 65 7d |ode, {\t|t pmode}|
|00003290| 20 66 6f 72 20 67 6f 69 | 6e 67 20 74 6f 20 74 68 | for goi|ng to th|
|000032a0| 65 0a 20 20 20 20 70 6c | 6f 74 74 69 6e 67 20 6d |e. pl|otting m|
|000032b0| 6f 64 65 20 61 6e 64 20 | 7b 5c 74 74 20 66 6d 6f |ode and |{\tt fmo|
|000032c0| 64 65 7d 20 74 6f 20 67 | 6f 20 62 61 63 6b 20 74 |de} to g|o back t|
|000032d0| 6f 20 74 68 65 20 66 69 | 74 74 69 6e 67 20 6d 6f |o the fi|tting mo|
|000032e0| 64 65 0a 20 20 20 20 66 | 72 6f 6d 20 61 6e 79 20 |de. f|rom any |
|000032f0| 6f 66 20 74 68 65 20 74 | 77 6f 20 70 72 65 76 69 |of the t|wo previ|
|00003300| 6f 75 73 20 6d 6f 64 65 | 73 2e 0a 20 20 20 20 49 |ous mode|s.. I|
|00003310| 6e 20 69 6e 74 65 72 61 | 63 74 69 76 65 20 75 73 |n intera|ctive us|
|00003320| 65 2c 20 74 79 70 69 6e | 67 20 5c 5e 7b 20 7d 44 |e, typin|g \^{ }D|
|00003330| 20 69 73 20 65 71 75 69 | 76 61 6c 65 6e 74 20 74 | is equi|valent t|
|00003340| 6f 20 7b 5c 74 74 20 66 | 6d 6f 64 65 7d 0a 20 20 |o {\tt f|mode}. |
|00003350| 20 20 61 6e 64 20 74 68 | 65 20 70 72 6f 67 72 61 | and th|e progra|
|00003360| 6d 20 77 69 6c 6c 20 72 | 65 74 75 72 6e 20 74 6f |m will r|eturn to|
|00003370| 20 74 68 65 20 66 69 74 | 74 69 6e 67 20 6d 6f 64 | the fit|ting mod|
|00003380| 65 2e 0a 0a 20 20 20 20 | 45 61 63 68 20 6d 6f 64 |e... |Each mod|
|00003390| 65 20 68 61 73 20 61 20 | 64 69 66 66 65 72 65 6e |e has a |differen|
|000033a0| 74 20 74 79 70 65 20 6f | 66 20 70 61 72 73 69 6e |t type o|f parsin|
|000033b0| 67 2e 20 54 68 65 20 66 | 69 74 74 69 6e 67 20 6d |g. The f|itting m|
|000033c0| 6f 64 65 0a 20 20 20 20 | 61 6e 61 6c 79 7a 65 73 |ode. |analyzes|
|000033d0| 20 74 68 65 20 69 6e 70 | 75 74 20 6c 69 6e 65 20 | the inp|ut line |
|000033e0| 62 79 20 62 72 65 61 6b | 69 6e 67 20 69 74 20 69 |by break|ing it i|
|000033f0| 6e 20 62 6c 61 6e 6b 20 | 73 65 70 61 72 61 74 65 |n blank |separate|
|00003400| 64 20 77 6f 72 64 73 2c | 0a 20 20 20 20 61 73 20 |d words,|. as |
|00003410| 74 68 65 20 73 74 61 6e | 64 61 72 64 0a 20 20 20 |the stan|dard. |
|00003420| 20 43 20 73 68 65 6c 6c | 2e 20 43 6f 6d 6d 61 6e | C shell|. Comman|
|00003430| 64 73 20 63 61 6e 20 74 | 68 75 73 20 62 65 20 61 |ds can t|hus be a|
|00003440| 62 62 72 65 76 69 61 74 | 65 64 20 69 6e 20 74 68 |bbreviat|ed in th|
|00003450| 69 73 20 6d 6f 64 65 2e | 0a 20 20 20 20 4f 6e 20 |is mode.|. On |
|00003460| 74 68 65 20 6f 74 68 65 | 72 20 68 61 6e 64 2c 20 |the othe|r hand, |
|00003470| 74 68 65 20 43 2d 63 61 | 6c 63 75 6c 61 74 6f 72 |the C-ca|lculator|
|00003480| 0a 20 20 20 20 6d 6f 64 | 65 20 70 61 72 73 65 73 |. mod|e parses|
|00003490| 20 74 68 65 20 69 6e 70 | 75 74 20 6c 69 6e 65 20 | the inp|ut line |
|000034a0| 62 79 20 62 72 65 61 6b | 69 6e 67 20 69 74 0a 20 |by break|ing it. |
|000034b0| 20 20 20 69 6e 74 6f 20 | 74 6f 6b 65 6e 73 20 61 | into |tokens a|
|000034c0| 6e 64 20 6b 65 79 77 6f | 72 64 73 20 6f 66 20 64 |nd keywo|rds of d|
|000034d0| 69 66 66 65 72 65 6e 74 | 20 74 79 70 65 73 20 61 |ifferent| types a|
|000034e0| 73 0a 20 20 20 20 64 6f | 65 73 20 61 20 43 20 6f |s. do|es a C o|
|000034f0| 72 20 46 4f 52 54 52 41 | 4e 20 63 6f 6d 70 69 6c |r FORTRA|N compil|
|00003500| 65 72 2e 20 4e 6f 74 68 | 69 6e 67 20 63 61 6e 20 |er. Noth|ing can |
|00003510| 62 65 0a 20 20 20 20 61 | 62 62 72 65 76 69 61 74 |be. a|bbreviat|
|00003520| 65 64 2c 20 62 75 74 20 | 74 68 65 20 64 69 66 66 |ed, but |the diff|
|00003530| 65 72 65 6e 74 20 74 6f | 6b 65 6e 73 20 6e 65 65 |erent to|kens nee|
|00003540| 64 20 6e 6f 74 20 62 65 | 0a 20 20 20 20 73 65 70 |d not be|. sep|
|00003550| 61 72 61 74 65 64 20 62 | 79 20 77 68 69 74 65 20 |arated b|y white |
|00003560| 73 70 61 63 65 73 2e 20 | 46 69 6e 61 6c 6c 79 2c |spaces. |Finally,|
|00003570| 20 74 68 65 20 70 6c 6f | 74 74 69 6e 67 20 6d 6f | the plo|tting mo|
|00003580| 64 65 0a 20 20 20 20 64 | 6f 65 73 20 6e 6f 20 70 |de. d|oes no p|
|00003590| 61 72 73 69 6e 67 20 61 | 74 20 61 6c 6c 2c 20 73 |arsing a|t all, s|
|000035a0| 69 6e 63 65 20 74 68 65 | 20 70 6c 6f 74 74 69 6e |ince the| plottin|
|000035b0| 67 20 70 72 6f 67 72 61 | 6d 20 69 73 0a 20 20 20 |g progra|m is. |
|000035c0| 20 72 65 73 70 6f 6e 73 | 69 62 6c 65 20 66 6f 72 | respons|ible for|
|000035d0| 20 61 6e 61 6c 79 7a 69 | 6e 67 20 74 68 65 20 69 | analyzi|ng the i|
|000035e0| 6e 70 75 74 20 6c 69 6e | 65 2e 0a 0a 20 20 20 20 |nput lin|e... |
|000035f0| 54 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 7b 5c 74 |The comm|ands {\t|
|00003600| 74 20 63 6d 6f 64 65 7d | 20 61 6e 64 20 7b 5c 74 |t cmode}| and {\t|
|00003610| 74 20 70 6d 6f 64 65 7d | 20 63 61 6e 20 62 65 20 |t pmode}| can be |
|00003620| 66 6f 6c 6c 6f 77 65 64 | 0a 20 20 20 20 62 79 20 |followed|. by |
|00003630| 61 20 6c 69 73 74 20 6f | 66 20 63 6f 6d 6d 61 6e |a list o|f comman|
|00003640| 64 73 20 6f 6e 20 74 68 | 65 20 73 61 6d 65 20 6c |ds on th|e same l|
|00003650| 69 6e 65 2c 20 69 6e 20 | 77 68 69 63 68 20 63 61 |ine, in |which ca|
|00003660| 73 65 20 74 68 65 0a 20 | 20 20 20 72 65 73 74 20 |se the. | rest |
|00003670| 6f 66 20 74 68 65 20 6c | 69 6e 65 20 77 69 6c 6c |of the l|ine will|
|00003680| 20 62 65 20 70 61 72 73 | 65 64 20 61 63 63 6f 72 | be pars|ed accor|
|00003690| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 6d 6f 64 65 |ding to |the mode|
|000036a0| 20 74 68 65 0a 20 20 20 | 20 63 6f 6d 6d 61 6e 64 | the. | command|
|000036b0| 20 72 65 66 65 72 73 20 | 74 6f 2c 20 61 6e 64 20 | refers |to, and |
|000036c0| 74 68 65 6e 20 70 72 6f | 63 65 73 73 65 64 20 69 |then pro|cessed i|
|000036d0| 6e 20 74 68 65 20 6d 6f | 64 65 0a 20 20 20 20 73 |n the mo|de. s|
|000036e0| 70 65 63 69 66 69 65 64 | 2e 20 54 6f 20 6d 61 6b |pecified|. To mak|
|000036f0| 65 20 6c 69 66 65 20 65 | 61 73 69 65 72 2c 20 74 |e life e|asier, t|
|00003700| 68 65 20 7b 5c 74 74 20 | 6c 65 74 7d 20 63 6f 6d |he {\tt |let} com|
|00003710| 6d 61 6e 64 0a 20 20 20 | 20 69 73 20 65 71 75 69 |mand. | is equi|
|00003720| 76 61 6c 65 6e 74 20 74 | 6f 20 7b 5c 74 74 20 63 |valent t|o {\tt c|
|00003730| 6d 6f 64 65 7d 20 61 6e | 64 20 61 6e 79 74 68 69 |mode} an|d anythi|
|00003740| 6e 67 20 66 6f 6c 6c 6f | 77 69 6e 67 20 69 74 0a |ng follo|wing it.|
|00003750| 20 20 20 20 77 69 6c 6c | 20 62 65 20 70 61 73 73 | will| be pass|
|00003760| 65 64 20 74 6f 20 74 68 | 65 20 43 2d 63 61 6c 63 |ed to th|e C-calc|
|00003770| 75 6c 61 74 6f 72 20 6d | 6f 64 65 20 70 61 72 73 |ulator m|ode pars|
|00003780| 65 72 20 61 6e 64 20 74 | 68 65 6e 0a 20 20 20 20 |er and t|hen. |
|00003790| 70 72 6f 63 65 73 73 65 | 64 2e 0a 20 20 20 20 0a |processe|d.. .|
|000037a0| 5c 73 65 63 74 69 6f 6e | 7b 56 65 63 74 6f 72 73 |\section|{Vectors|
|000037b0| 2c 20 50 61 72 61 6d 65 | 74 65 72 73 2c 20 56 61 |, Parame|ters, Va|
|000037c0| 72 69 61 62 6c 65 73 2c | 20 53 74 72 69 6e 67 73 |riables,| Strings|
|000037d0| 2c 20 61 6e 64 20 43 6f | 6e 73 74 61 6e 74 73 7d |, and Co|nstants}|
|000037e0| 0a 20 20 20 20 54 68 69 | 73 20 73 65 63 74 69 6f |. Thi|s sectio|
|000037f0| 6e 0a 20 20 20 20 64 65 | 73 63 72 69 62 65 73 20 |n. de|scribes |
|00003800| 74 68 65 20 64 69 66 66 | 65 72 65 6e 74 20 74 79 |the diff|erent ty|
|00003810| 70 65 73 20 6f 66 20 76 | 61 72 69 61 62 6c 65 73 |pes of v|ariables|
|00003820| 20 73 75 70 70 6f 72 74 | 65 64 20 62 79 20 5c 66 | support|ed by \f|
|00003830| 75 64 67 69 74 2e 0a 20 | 20 20 20 54 68 65 79 20 |udgit.. | They |
|00003840| 61 72 65 20 7b 5c 62 66 | 20 76 65 63 74 6f 72 73 |are {\bf| vectors|
|00003850| 2c 20 76 61 72 69 61 62 | 6c 65 73 2c 20 63 6f 6e |, variab|les, con|
|00003860| 73 74 61 6e 74 73 2c 20 | 73 74 72 69 6e 67 20 76 |stants, |string v|
|00003870| 61 72 69 61 62 6c 65 73 | 7d 0a 20 20 20 20 61 6e |ariables|}. an|
|00003880| 64 20 7b 5c 62 66 20 73 | 74 72 69 6e 67 20 63 6f |d {\bf s|tring co|
|00003890| 6e 73 74 61 6e 74 73 7d | 2e 20 54 6f 20 74 68 69 |nstants}|. To thi|
|000038a0| 73 20 6c 69 73 74 2c 20 | 77 65 20 73 68 6f 75 6c |s list, |we shoul|
|000038b0| 64 0a 20 20 20 20 61 64 | 64 20 74 68 65 20 6c 61 |d. ad|d the la|
|000038c0| 73 74 20 63 6c 61 73 73 | 20 6f 66 20 6f 62 6a 65 |st class| of obje|
|000038d0| 63 74 73 20 63 6f 6e 73 | 69 73 74 69 6e 67 20 6f |cts cons|isting o|
|000038e0| 66 20 6f 6e 6c 79 20 6f | 6e 65 20 6d 65 6d 62 65 |f only o|ne membe|
|000038f0| 72 3a 0a 20 20 20 20 7b | 5c 62 66 20 70 61 72 61 |r:. {|\bf para|
|00003900| 6d 65 74 65 72 73 7d 2e | 20 56 65 63 74 6f 72 20 |meters}.| Vector |
|00003910| 61 6e 64 20 70 61 72 61 | 6d 65 74 65 72 20 6e 61 |and para|meter na|
|00003920| 6d 65 73 20 63 6f 6e 73 | 69 73 74 20 0a 20 20 20 |mes cons|ist . |
|00003930| 20 6f 66 20 75 70 70 65 | 72 20 63 61 73 65 20 6c | of uppe|r case l|
|00003940| 65 74 74 65 72 73 20 75 | 6e 69 71 75 65 6c 79 2e |etters u|niquely.|
|00003950| 0a 20 20 20 20 56 61 72 | 69 61 62 6c 65 20 61 6e |. Var|iable an|
|00003960| 64 20 63 6f 6e 73 74 61 | 6e 74 20 6e 61 6d 65 73 |d consta|nt names|
|00003970| 20 63 6f 6e 73 69 73 74 | 0a 20 20 20 20 6f 66 20 | consist|. of |
|00003980| 6c 6f 77 65 72 20 63 61 | 73 65 20 6c 65 74 74 65 |lower ca|se lette|
|00003990| 72 73 20 75 6e 69 71 75 | 65 6c 79 2e 0a 20 20 20 |rs uniqu|ely.. |
|000039a0| 20 53 74 72 69 6e 67 20 | 76 61 72 69 61 62 6c 65 | String |variable|
|000039b0| 20 61 6e 64 20 73 74 72 | 69 6e 67 20 63 6f 6e 73 | and str|ing cons|
|000039c0| 74 61 6e 74 20 6e 61 6d | 65 73 0a 20 20 20 20 63 |tant nam|es. c|
|000039d0| 6f 6e 73 69 73 74 20 6f | 66 20 61 20 6d 69 78 74 |onsist o|f a mixt|
|000039e0| 75 72 65 20 6f 66 20 75 | 70 70 65 72 20 63 61 73 |ure of u|pper cas|
|000039f0| 65 20 61 6e 64 20 6c 6f | 77 65 72 20 63 61 73 65 |e and lo|wer case|
|00003a00| 20 6c 65 74 74 65 72 73 | 2e 20 41 6e 79 20 6e 75 | letters|. Any nu|
|00003a10| 6d 62 65 72 0a 20 20 20 | 20 6f 66 20 64 69 67 69 |mber. | of digi|
|00003a20| 74 73 20 6f 72 20 75 6e | 64 65 72 73 63 6f 72 65 |ts or un|derscore|
|00003a30| 73 20 63 61 6e 20 62 65 | 20 70 61 72 74 20 6f 66 |s can be| part of|
|00003a40| 20 61 20 6e 61 6d 65 3a | 20 74 68 65 20 72 65 6d | a name:| the rem|
|00003a50| 61 69 6e 69 6e 67 0a 20 | 20 20 20 63 68 61 72 61 |aining. | chara|
|00003a60| 63 74 65 72 73 20 77 69 | 6c 6c 20 74 68 65 6e 20 |cters wi|ll then |
|00003a70| 64 65 63 69 64 65 20 6f | 6e 20 74 68 65 20 63 6c |decide o|n the cl|
|00003a80| 61 73 73 20 6f 66 20 6f | 62 6a 65 63 74 20 74 68 |ass of o|bject th|
|00003a90| 65 20 6e 61 6d 65 20 64 | 65 73 63 72 69 62 65 73 |e name d|escribes|
|00003aa0| 2e 0a 20 20 20 20 56 65 | 63 74 6f 72 73 2c 20 70 |.. Ve|ctors, p|
|00003ab0| 61 72 61 6d 65 74 65 72 | 73 2c 20 76 61 72 69 61 |arameter|s, varia|
|00003ac0| 62 6c 65 73 20 61 6e 64 | 20 63 6f 6e 73 74 61 6e |bles and| constan|
|00003ad0| 74 73 20 61 72 65 20 61 | 6c 6c 20 64 6f 75 62 6c |ts are a|ll doubl|
|00003ae0| 65 20 70 72 65 63 69 73 | 69 6f 6e 0a 20 20 20 20 |e precis|ion. |
|00003af0| 6e 75 6d 62 65 72 73 2e | 0a 0a 5c 73 75 62 73 65 |numbers.|..\subse|
|00003b00| 63 74 69 6f 6e 7b 53 63 | 6f 70 65 20 6f 66 20 56 |ction{Sc|ope of V|
|00003b10| 61 72 69 61 62 6c 65 73 | 7d 0a 20 20 20 20 41 6c |ariables|}. Al|
|00003b20| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |l variab|les are |
|00003b30| 61 6c 6c 6f 63 61 74 65 | 64 20 61 73 20 74 68 65 |allocate|d as the|
|00003b40| 79 20 61 72 65 20 69 6e | 74 72 6f 64 75 63 65 64 |y are in|troduced|
|00003b50| 0a 20 20 20 20 6f 6e 20 | 74 68 65 20 43 2d 63 61 |. on |the C-ca|
|00003b60| 6c 63 75 6c 61 74 6f 72 | 20 6d 6f 64 65 20 63 6f |lculator| mode co|
|00003b70| 6d 6d 61 6e 64 20 6c 69 | 6e 65 2e 20 41 6c 6c 20 |mmand li|ne. All |
|00003b80| 73 75 63 68 20 76 61 72 | 69 61 62 6c 65 73 20 68 |such var|iables h|
|00003b90| 61 76 65 20 61 20 67 6c | 6f 62 61 6c 0a 20 20 20 |ave a gl|obal. |
|00003ba0| 20 73 63 6f 70 65 20 73 | 6f 20 74 68 61 74 20 74 | scope s|o that t|
|00003bb0| 68 65 79 20 63 61 6e 20 | 62 65 20 61 63 63 65 73 |hey can |be acces|
|00003bc0| 73 65 64 20 66 72 6f 6d | 20 61 6e 79 77 68 65 72 |sed from| anywher|
|00003bd0| 65 20 6f 75 74 73 69 64 | 65 0a 20 20 20 20 6f 72 |e outsid|e. or|
|00003be0| 20 69 6e 73 69 64 65 20 | 66 75 6e 63 74 69 6f 6e | inside |function|
|00003bf0| 73 20 6f 72 20 70 72 6f | 63 65 64 75 72 65 73 2e |s or pro|cedures.|
|00003c00| 20 41 75 74 6f 6d 61 74 | 69 63 20 76 61 72 69 61 | Automat|ic varia|
|00003c10| 62 6c 65 73 20 63 61 6e | 0a 20 20 20 20 62 65 20 |bles can|. be |
|00003c20| 64 65 66 69 6e 65 64 20 | 77 69 74 68 20 74 68 65 |defined |with the|
|00003c30| 20 7b 5c 74 74 20 61 75 | 74 6f 7d 20 6b 65 79 77 | {\tt au|to} keyw|
|00003c40| 6f 72 64 2e 20 54 68 65 | 20 73 63 6f 70 65 20 6f |ord. The| scope o|
|00003c50| 66 20 73 75 63 68 0a 20 | 20 20 20 76 61 72 69 61 |f such. | varia|
|00003c60| 62 6c 65 73 20 69 73 20 | 64 65 6c 69 6d 69 74 65 |bles is |delimite|
|00003c70| 64 20 62 79 20 62 72 61 | 63 65 73 20 61 73 20 69 |d by bra|ces as i|
|00003c80| 6e 20 73 74 61 6e 64 61 | 72 64 20 43 2e 20 54 68 |n standa|rd C. Th|
|00003c90| 65 20 7b 5c 74 74 20 61 | 75 74 6f 7d 0a 20 20 20 |e {\tt a|uto}. |
|00003ca0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 68 61 73 20 | definit|ion has |
|00003cb0| 74 6f 20 62 65 20 69 6d | 6d 65 64 69 61 74 65 6c |to be im|mediatel|
|00003cc0| 79 20 61 66 74 65 72 20 | 61 6e 20 6f 70 65 6e 65 |y after |an opene|
|00003cd0| 64 20 62 72 61 63 65 2e | 20 57 68 65 6e 0a 20 20 |d brace.| When. |
|00003ce0| 20 20 64 65 66 69 6e 65 | 64 20 69 6e 73 69 64 65 | define|d inside|
|00003cf0| 20 66 75 6e 63 74 69 6f | 6e 73 20 6f 72 20 70 72 | functio|ns or pr|
|00003d00| 6f 63 65 64 75 72 65 73 | 2c 20 61 75 74 6f 6d 61 |ocedures|, automa|
|00003d10| 74 69 63 20 76 61 72 69 | 61 62 6c 65 73 0a 20 20 |tic vari|ables. |
|00003d20| 20 20 63 61 6e 6e 6f 74 | 20 68 61 76 65 20 61 20 | cannot| have a |
|00003d30| 6e 61 6d 65 20 61 6c 72 | 65 61 64 79 20 75 73 65 |name alr|eady use|
|00003d40| 64 20 62 79 20 61 6e 20 | 61 72 67 75 6d 65 6e 74 |d by an |argument|
|00003d50| 20 6f 72 20 74 68 65 20 | 66 75 6e 63 74 69 6f 6e | or the |function|
|00003d60| 0a 20 20 20 20 6f 72 20 | 70 72 6f 63 65 64 75 72 |. or |procedur|
|00003d70| 65 2e 20 41 75 74 6f 6d | 61 74 69 63 20 76 61 72 |e. Autom|atic var|
|00003d80| 69 61 62 6c 65 73 20 61 | 72 65 20 6c 6f 63 61 74 |iables a|re locat|
|00003d90| 65 64 20 6f 6e 20 74 68 | 65 0a 20 20 20 20 73 74 |ed on th|e. st|
|00003da0| 61 63 6b 20 61 6e 64 20 | 61 72 65 20 66 72 65 65 |ack and |are free|
|00003db0| 64 20 77 68 65 6e 20 74 | 68 65 20 62 72 61 63 65 |d when t|he brace|
|00003dc0| 20 6d 61 74 63 68 69 6e | 67 20 74 68 65 20 65 6e | matchin|g the en|
|00003dd0| 64 20 6f 66 0a 20 20 20 | 20 74 68 65 20 73 63 6f |d of. | the sco|
|00003de0| 70 65 20 69 73 20 65 6e | 63 6f 75 6e 74 65 72 65 |pe is en|countere|
|00003df0| 64 2e 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |d...\sub|section{|
|00003e00| 56 65 63 74 6f 72 73 7d | 0a 20 20 20 20 5c 66 75 |Vectors}|. \fu|
|00003e10| 64 67 69 74 5c 20 73 75 | 70 70 6f 72 74 73 20 66 |dgit\ su|pports f|
|00003e20| 75 6c 6c 20 76 65 63 74 | 6f 72 20 61 72 69 74 68 |ull vect|or arith|
|00003e30| 6d 65 74 69 63 2e 0a 20 | 20 20 20 54 68 69 73 20 |metic.. | This |
|00003e40| 6d 65 61 6e 73 20 74 68 | 61 74 20 6f 6e 63 65 20 |means th|at once |
|00003e50| 61 20 76 65 63 74 6f 72 | 20 68 61 73 0a 20 20 20 |a vector| has. |
|00003e60| 20 62 65 65 6e 20 72 65 | 61 64 2c 20 69 74 20 63 | been re|ad, it c|
|00003e70| 61 6e 20 62 65 20 6d 6f | 64 69 66 69 65 64 20 75 |an be mo|dified u|
|00003e80| 73 69 6e 67 20 61 6e 79 | 20 6f 66 20 74 68 65 20 |sing any| of the |
|00003e90| 73 75 70 70 6f 72 74 65 | 64 20 6d 61 74 68 20 66 |supporte|d math f|
|00003ea0| 75 6e 63 74 69 6f 6e 73 | 2e 0a 20 20 20 20 41 20 |unctions|.. A |
|00003eb0| 76 65 63 74 6f 72 20 63 | 61 6e 20 61 6c 73 6f 20 |vector c|an also |
|00003ec0| 62 65 20 63 72 65 61 74 | 65 64 20 62 79 20 61 20 |be creat|ed by a |
|00003ed0| 73 69 6d 70 6c 65 20 61 | 73 73 69 67 6e 6d 65 6e |simple a|ssignmen|
|00003ee0| 74 20 6f 72 20 61 0a 20 | 20 20 20 7b 5c 74 74 20 |t or a. | {\tt |
|00003ef0| 77 68 69 6c 65 7d 20 6f | 72 20 7b 5c 74 74 20 66 |while} o|r {\tt f|
|00003f00| 6f 72 7d 20 6c 6f 6f 70 | 20 6f 76 65 72 20 69 74 |or} loop| over it|
|00003f10| 73 20 65 6c 65 6d 65 6e | 74 73 2e 20 41 6e 79 20 |s elemen|ts. Any |
|00003f20| 76 65 63 74 6f 72 0a 20 | 20 20 20 70 61 72 74 20 |vector. | part |
|00003f30| 6f 66 20 61 6e 20 61 73 | 73 69 67 6e 6d 65 6e 74 |of an as|signment|
|00003f40| 20 77 69 6c 6c 20 62 65 | 20 63 72 65 61 74 65 64 | will be| created|
|00003f50| 20 61 6e 64 20 61 6c 6c | 6f 63 61 74 65 64 20 69 | and all|ocated i|
|00003f60| 66 20 69 74 0a 20 20 20 | 20 64 6f 65 73 20 6e 6f |f it. | does no|
|00003f70| 74 20 61 6c 72 65 61 64 | 79 20 65 78 69 73 74 2e |t alread|y exist.|
|00003f80| 20 54 68 65 20 61 6c 6c | 6f 63 61 74 69 6f 6e 20 | The all|ocation |
|00003f90| 73 69 7a 65 20 69 73 20 | 73 70 65 63 69 66 69 65 |size is |specifie|
|00003fa0| 64 20 62 79 20 74 68 65 | 0a 20 20 20 20 7b 5c 74 |d by the|. {\t|
|00003fb0| 74 20 73 65 74 20 73 61 | 6d 70 6c 65 73 7d 20 63 |t set sa|mples} c|
|00003fc0| 6f 6d 6d 61 6e 64 2e 20 | 54 68 65 20 64 65 66 61 |ommand. |The defa|
|00003fd0| 75 6c 74 20 73 69 7a 65 | 20 69 73 20 34 30 30 30 |ult size| is 4000|
|00003fe0| 2e 0a 20 20 20 20 41 20 | 63 6f 6e 73 74 61 6e 74 |.. A |constant|
|00003ff0| 20 63 61 6c 6c 65 64 20 | 7b 5c 74 74 20 64 61 74 | called |{\tt dat|
|00004000| 61 7d 20 77 69 6c 6c 20 | 62 65 20 73 65 74 20 74 |a} will |be set t|
|00004010| 6f 20 74 68 65 20 6e 75 | 6d 62 65 72 0a 20 20 20 |o the nu|mber. |
|00004020| 20 6f 66 20 65 6c 65 6d | 65 6e 74 73 20 74 68 61 | of elem|ents tha|
|00004030| 74 20 68 61 76 65 20 62 | 65 65 6e 20 72 65 61 64 |t have b|een read|
|00004040| 2e 20 4f 62 76 69 6f 75 | 73 6c 79 2c 0a 20 20 20 |. Obviou|sly,. |
|00004050| 20 7b 5c 74 74 20 64 61 | 74 61 7d 20 77 69 6c 6c | {\tt da|ta} will|
|00004060| 20 61 6c 77 61 79 73 20 | 62 65 20 73 6d 61 6c 6c | always |be small|
|00004070| 65 72 20 74 68 61 6e 20 | 74 68 65 20 73 61 6d 70 |er than |the samp|
|00004080| 6c 65 20 73 69 7a 65 2e | 0a 20 20 20 20 4f 70 65 |le size.|. Ope|
|00004090| 72 61 74 69 6f 6e 73 20 | 72 65 6c 61 74 69 6e 67 |rations |relating|
|000040a0| 20 76 65 63 74 6f 72 73 | 20 61 72 65 20 70 6f 73 | vectors| are pos|
|000040b0| 73 69 62 6c 65 2e 0a 20 | 20 20 20 49 6e 20 74 68 |sible.. | In th|
|000040c0| 69 73 20 63 61 73 65 2c | 20 61 20 6c 6f 6f 70 20 |is case,| a loop |
|000040d0| 6f 76 65 72 20 74 68 65 | 20 76 65 63 74 6f 72 20 |over the| vector |
|000040e0| 65 6c 65 6d 65 6e 74 73 | 20 77 69 6c 6c 0a 20 20 |elements| will. |
|000040f0| 20 20 62 65 20 64 6f 6e | 65 20 66 72 6f 6d 20 74 | be don|e from t|
|00004100| 68 65 20 66 69 72 73 74 | 20 65 6c 65 6d 65 6e 74 |he first| element|
|00004110| 20 74 6f 20 74 68 65 20 | 7b 5c 74 74 20 64 61 74 | to the |{\tt dat|
|00004120| 61 7d 24 5e 7b 74 68 7d | 24 0a 20 20 20 20 65 6c |a}$^{th}|$. el|
|00004130| 65 6d 65 6e 74 2e 20 54 | 68 65 20 76 61 6c 75 65 |ement. T|he value|
|00004140| 20 6f 66 20 74 68 69 73 | 20 63 6f 6e 73 74 61 6e | of this| constan|
|00004150| 74 20 69 73 20 74 68 65 | 72 65 66 6f 72 65 0a 20 |t is the|refore. |
|00004160| 20 20 20 63 72 75 63 69 | 61 6c 20 74 6f 20 61 6c | cruci|al to al|
|00004170| 6c 20 76 65 63 74 6f 72 | 20 6f 70 65 72 61 74 69 |l vector| operati|
|00004180| 6f 6e 73 2e 20 57 65 20 | 73 68 6f 75 6c 64 20 67 |ons. We |should g|
|00004190| 6f 20 6f 76 65 72 20 61 | 6e 20 65 78 61 6d 70 6c |o over a|n exampl|
|000041a0| 65 2e 0a 0a 20 20 20 20 | 53 75 70 70 6f 73 65 20 |e... |Suppose |
|000041b0| 74 68 61 74 20 76 65 63 | 74 6f 72 73 20 24 58 2c |that vec|tors $X,|
|000041c0| 20 59 2c 20 5a 24 20 61 | 6e 64 20 7b 5c 69 74 20 | Y, Z$ a|nd {\it |
|000041d0| 45 4e 45 52 47 59 7d 0a | 20 20 20 20 68 61 76 65 |ENERGY}.| have|
|000041e0| 20 62 65 65 6e 20 72 65 | 61 64 20 66 72 6f 6d 20 | been re|ad from |
|000041f0| 61 20 66 69 6c 65 20 75 | 73 69 6e 67 0a 20 20 20 |a file u|sing. |
|00004200| 20 61 20 7b 5c 74 74 20 | 72 65 61 64 7d 20 73 74 | a {\tt |read} st|
|00004210| 61 74 65 6d 65 6e 74 20 | 28 64 65 73 63 72 69 62 |atement |(describ|
|00004220| 65 64 20 62 65 6c 6f 77 | 29 2e 0a 20 20 20 20 4e |ed below|).. N|
|00004230| 6f 77 20 63 6f 6e 73 69 | 64 65 72 20 74 68 65 20 |ow consi|der the |
|00004240| 66 6f 6c 6c 6f 77 69 6e | 67 20 61 73 73 69 67 6e |followin|g assign|
|00004250| 6d 65 6e 74 73 3a 0a 20 | 20 20 20 5c 62 71 20 6c |ments:. | \bq l|
|00004260| 65 74 20 58 3d 6c 6e 28 | 58 29 5c 5c 0a 20 20 20 |et X=ln(|X)\\. |
|00004270| 20 6c 65 74 20 59 3d 73 | 69 6e 28 58 2b 5a 29 5c | let Y=s|in(X+Z)\|
|00004280| 5c 0a 20 20 20 20 6c 65 | 74 20 54 49 4d 45 3d 45 |\. le|t TIME=E|
|00004290| 4e 45 52 47 59 5c 5e 7b | 20 7d 32 5c 5c 0a 20 20 |NERGY\^{| }2\\. |
|000042a0| 20 20 6c 65 74 20 43 4f | 4e 53 54 3d 33 5c 5c 0a | let CO|NST=3\\.|
|000042b0| 20 20 20 20 6c 65 74 20 | 47 41 4d 45 3d 72 61 6e | let |GAME=ran|
|000042c0| 64 28 29 5c 5c 0a 20 20 | 20 20 6c 65 74 20 4b 2f |d()\\. | let K/|
|000042d0| 3d 47 41 4d 45 5c 65 71 | 0a 20 20 20 20 77 68 69 |=GAME\eq|. whi|
|000042e0| 63 68 20 61 6c 6c 20 61 | 72 65 20 65 78 61 6d 70 |ch all a|re examp|
|000042f0| 6c 65 73 20 6f 66 20 61 | 20 73 69 6e 67 6c 65 20 |les of a| single |
|00004300| 65 71 75 61 74 69 6f 6e | 20 72 65 6c 61 74 69 6e |equation| relatin|
|00004310| 67 20 7b 5c 74 74 20 64 | 61 74 61 7d 20 65 71 75 |g {\tt d|ata} equ|
|00004320| 61 74 69 6f 6e 73 2c 0a | 20 20 20 20 73 69 6e 63 |ations,.| sinc|
|00004330| 65 20 65 61 63 68 20 76 | 65 63 74 6f 72 20 65 6c |e each v|ector el|
|00004340| 65 6d 65 6e 74 20 77 69 | 6c 6c 20 62 65 20 61 73 |ement wi|ll be as|
|00004350| 73 69 67 6e 65 64 20 69 | 6e 64 69 76 69 64 75 61 |signed i|ndividua|
|00004360| 6c 6c 79 2e 20 41 6c 74 | 68 6f 75 67 68 0a 20 20 |lly. Alt|hough. |
|00004370| 20 20 61 6c 6c 20 74 68 | 65 20 65 6c 65 6d 65 6e | all th|e elemen|
|00004380| 74 73 20 6f 66 20 76 65 | 63 74 6f 72 20 7b 5c 74 |ts of ve|ctor {\t|
|00004390| 74 20 43 4f 4e 53 54 7d | 20 77 69 6c 6c 20 62 65 |t CONST}| will be|
|000043a0| 20 65 71 75 61 6c 20 74 | 6f 20 33 2c 20 74 68 65 | equal t|o 3, the|
|000043b0| 20 65 6c 65 6d 65 6e 74 | 73 0a 20 20 20 20 6f 66 | element|s. of|
|000043c0| 20 76 65 63 74 6f 72 20 | 7b 5c 74 74 20 47 41 4d | vector |{\tt GAM|
|000043d0| 45 7d 20 77 69 6c 6c 20 | 62 65 20 72 61 6e 64 6f |E} will |be rando|
|000043e0| 6d 20 6e 75 6d 62 65 72 | 73 20 69 6e 64 65 70 65 |m number|s indepe|
|000043f0| 6e 64 65 6e 74 6c 79 20 | 67 65 6e 65 72 61 74 65 |ndently |generate|
|00004400| 64 0a 20 20 20 20 62 79 | 20 74 68 65 20 66 75 6e |d. by| the fun|
|00004410| 63 74 69 6f 6e 20 7b 5c | 74 74 20 72 61 6e 64 28 |ction {\|tt rand(|
|00004420| 29 7d 2e 0a 0a 20 20 20 | 20 56 65 63 74 6f 72 20 |)}... | Vector |
|00004430| 65 6c 65 6d 65 6e 74 73 | 20 63 61 6e 20 61 6c 73 |elements| can als|
|00004440| 6f 20 62 65 20 72 65 66 | 65 72 65 6e 63 65 64 20 |o be ref|erenced |
|00004450| 69 6e 64 69 76 69 64 75 | 61 6c 6c 79 20 75 73 69 |individu|ally usi|
|00004460| 6e 67 20 74 68 65 20 75 | 73 75 61 6c 0a 20 20 20 |ng the u|sual. |
|00004470| 20 43 20 73 79 6e 74 61 | 78 2e 20 54 68 75 73 2c | C synta|x. Thus,|
|00004480| 20 24 41 5b 32 5d 24 20 | 72 65 66 65 72 73 20 74 | $A[2]$ |refers t|
|00004490| 6f 20 74 68 65 20 73 65 | 63 6f 6e 64 20 65 6c 65 |o the se|cond ele|
|000044a0| 6d 65 6e 74 20 6f 66 20 | 76 65 63 74 6f 72 20 24 |ment of |vector $|
|000044b0| 41 24 2e 0a 20 20 20 20 | 56 65 63 74 6f 72 20 6f |A$.. |Vector o|
|000044c0| 70 65 72 61 74 69 6f 6e | 20 63 61 6e 20 74 68 75 |peration| can thu|
|000044d0| 73 20 62 65 20 64 6f 6e | 65 20 75 73 69 6e 67 20 |s be don|e using |
|000044e0| 7b 5c 74 74 20 66 6f 72 | 7d 20 6c 6f 6f 70 73 0a |{\tt for|} loops.|
|000044f0| 20 20 20 20 6f 72 20 7b | 5c 74 74 20 77 68 69 6c | or {|\tt whil|
|00004500| 65 7d 20 6c 6f 6f 70 20 | 63 6f 6e 73 74 72 75 63 |e} loop |construc|
|00004510| 74 69 6f 6e 73 2e 0a 20 | 20 20 20 4e 6f 74 65 20 |tions.. | Note |
|00004520| 74 68 61 74 20 75 6e 6c | 69 6b 65 20 43 2c 20 74 |that unl|ike C, t|
|00004530| 68 65 20 66 69 72 73 74 | 20 65 6c 65 6d 65 6e 74 |he first| element|
|00004540| 20 6f 66 20 61 6e 79 20 | 76 65 63 74 6f 72 20 69 | of any |vector i|
|00004550| 73 20 31 2e 0a 0a 20 20 | 20 20 42 65 20 63 61 72 |s 1... | Be car|
|00004560| 65 66 75 6c 20 77 69 74 | 68 20 61 73 73 69 67 6e |eful wit|h assign|
|00004570| 6d 65 6e 74 73 20 69 6e | 76 6f 6c 76 69 6e 67 20 |ments in|volving |
|00004580| 61 20 76 65 63 74 6f 72 | 20 65 6c 65 6d 65 6e 74 |a vector| element|
|00004590| 20 61 6e 64 20 74 68 65 | 20 73 61 6d 65 0a 20 20 | and the| same. |
|000045a0| 20 20 77 68 6f 6c 65 20 | 76 65 63 74 6f 72 20 61 | whole |vector a|
|000045b0| 73 20 69 6e 3a 0a 20 20 | 20 20 5c 62 71 20 6c 65 |s in:. | \bq le|
|000045c0| 74 20 56 45 43 20 2a 3d | 20 56 45 43 5b 33 5d 20 |t VEC *=| VEC[3] |
|000045d0| 5c 65 71 0a 20 20 20 20 | 77 68 69 63 68 20 77 6f |\eq. |which wo|
|000045e0| 75 6c 64 20 6d 75 6c 74 | 69 70 6c 79 20 74 68 65 |uld mult|iply the|
|000045f0| 20 76 65 63 74 6f 72 20 | 7b 5c 74 74 20 56 45 43 | vector |{\tt VEC|
|00004600| 7d 20 62 79 20 69 74 73 | 20 74 68 69 72 64 20 65 |} by its| third e|
|00004610| 6c 65 6d 65 6e 74 2e 0a | 20 20 20 20 48 6f 77 65 |lement..| Howe|
|00004620| 76 65 72 2c 20 74 68 65 | 20 76 61 6c 75 65 20 7b |ver, the| value {|
|00004630| 5c 74 74 20 56 45 43 5b | 33 5d 7d 20 77 69 6c 6c |\tt VEC[|3]} will|
|00004640| 20 6e 6f 74 20 62 65 20 | 63 6f 6e 73 74 61 6e 74 | not be |constant|
|00004650| 20 6f 76 65 72 20 74 68 | 65 0a 20 20 20 20 69 6d | over th|e. im|
|00004660| 70 6c 69 65 64 20 6c 6f | 6f 70 20 61 6e 64 20 74 |plied lo|op and t|
|00004670| 68 65 20 72 65 73 75 6c | 74 20 77 69 6c 6c 20 6e |he resul|t will n|
|00004680| 6f 74 20 62 65 20 74 68 | 65 20 6f 6e 65 20 65 78 |ot be th|e one ex|
|00004690| 70 65 63 74 65 64 2e 0a | 20 20 20 20 54 68 65 72 |pected..| Ther|
|000046a0| 65 66 6f 72 65 2c 20 73 | 75 63 68 20 61 73 73 69 |efore, s|uch assi|
|000046b0| 67 6e 6d 65 6e 74 73 20 | 73 68 6f 75 6c 64 20 62 |gnments |should b|
|000046c0| 65 20 77 72 69 74 74 65 | 6e 20 75 73 69 6e 67 20 |e writte|n using |
|000046d0| 74 65 6d 70 6f 72 61 72 | 79 0a 20 20 20 20 76 61 |temporar|y. va|
|000046e0| 72 69 61 62 6c 65 73 20 | 61 73 20 69 6e 3a 0a 20 |riables |as in:. |
|000046f0| 20 20 20 5c 62 71 20 6c | 65 74 20 74 6d 70 20 3d | \bq l|et tmp =|
|00004700| 20 56 45 43 5b 33 5d 5c | 5c 0a 20 20 20 20 6c 65 | VEC[3]\|\. le|
|00004710| 74 20 56 45 43 20 2a 3d | 20 74 6d 70 5c 65 71 0a |t VEC *=| tmp\eq.|
|00004720| 20 20 20 20 73 6f 20 74 | 68 61 74 20 76 61 72 69 | so t|hat vari|
|00004730| 61 62 6c 65 20 7b 5c 74 | 74 20 74 6d 70 7d 20 63 |able {\t|t tmp} c|
|00004740| 61 72 72 69 65 73 20 74 | 68 65 20 76 61 6c 75 65 |arries t|he value|
|00004750| 20 74 68 61 74 20 7b 5c | 74 74 20 56 45 43 5b 33 | that {\|tt VEC[3|
|00004760| 5d 7d 0a 20 20 20 20 68 | 61 64 20 62 65 66 6f 72 |]}. h|ad befor|
|00004770| 65 20 74 68 65 20 61 73 | 73 69 67 6e 6d 65 6e 74 |e the as|signment|
|00004780| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 77 68 6f | through| the who|
|00004790| 6c 65 20 6c 6f 6f 70 2e | 0a 0a 20 20 20 20 56 65 |le loop.|.. Ve|
|000047a0| 63 74 6f 72 73 20 63 61 | 6e 20 62 65 20 73 61 76 |ctors ca|n be sav|
|000047b0| 65 64 2c 20 61 70 70 65 | 6e 64 65 64 20 74 6f 20 |ed, appe|nded to |
|000047c0| 61 20 66 69 6c 65 2c 20 | 77 69 74 68 20 74 68 65 |a file, |with the|
|000047d0| 20 7b 5c 74 74 20 61 70 | 70 65 6e 64 20 76 65 63 | {\tt ap|pend vec|
|000047e0| 74 6f 72 73 7d 0a 20 20 | 20 20 61 6e 64 20 7b 5c |tors}. | and {\|
|000047f0| 74 74 20 73 61 76 65 20 | 76 65 63 74 6f 72 73 7d |tt save |vectors}|
|00004800| 20 63 6f 6d 6d 61 6e 64 | 2e 20 54 68 65 79 20 63 | command|. They c|
|00004810| 61 6e 20 62 65 20 64 69 | 73 70 6c 61 79 65 64 20 |an be di|splayed |
|00004820| 61 74 20 61 6e 79 20 74 | 69 6d 65 0a 20 20 20 20 |at any t|ime. |
|00004830| 75 73 69 6e 67 20 74 68 | 65 20 7b 5c 74 74 20 73 |using th|e {\tt s|
|00004840| 68 6f 77 20 76 65 63 74 | 6f 72 73 7d 20 63 6f 6d |how vect|ors} com|
|00004850| 6d 61 6e 64 2e 0a 0a 5c | 73 75 62 73 65 63 74 69 |mand...\|subsecti|
|00004860| 6f 6e 7b 50 61 72 61 6d | 65 74 65 72 73 7d 0a 20 |on{Param|eters}. |
|00004870| 20 20 20 54 68 65 20 73 | 68 6f 72 74 20 76 65 63 | The s|hort vec|
|00004880| 74 6f 72 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 74 |tor cont|aining t|
|00004890| 68 65 20 66 69 74 74 69 | 6e 67 20 70 61 72 61 6d |he fitti|ng param|
|000048a0| 65 74 65 72 73 20 69 73 | 20 69 73 6f 6c 61 74 65 |eters is| isolate|
|000048b0| 64 0a 20 20 20 20 69 6e | 20 61 20 63 6c 61 73 73 |d. in| a class|
|000048c0| 20 62 79 20 69 74 73 65 | 6c 66 2e 20 50 61 72 61 | by itse|lf. Para|
|000048d0| 6d 65 74 65 72 73 20 63 | 61 6e 20 62 65 20 61 73 |meters c|an be as|
|000048e0| 73 69 67 6e 65 64 20 67 | 6c 6f 62 61 6c 6c 79 20 |signed g|lobally |
|000048f0| 6f 72 0a 20 20 20 20 65 | 6c 65 6d 65 6e 74 20 62 |or. e|lement b|
|00004900| 79 20 65 6c 65 6d 65 6e | 74 2e 20 43 6c 65 61 72 |y elemen|t. Clear|
|00004910| 6c 79 2c 20 70 61 72 61 | 6d 65 74 65 72 73 20 63 |ly, para|meters c|
|00004920| 61 6e 6e 6f 74 20 62 65 | 20 6d 69 78 65 64 20 77 |annot be| mixed w|
|00004930| 69 74 68 20 76 65 63 74 | 6f 72 73 0a 20 20 20 20 |ith vect|ors. |
|00004940| 62 75 74 20 65 6c 65 6d | 65 6e 74 73 20 6f 66 20 |but elem|ents of |
|00004950| 69 74 20 63 61 6e 2e 20 | 54 68 65 72 65 66 6f 72 |it can. |Therefor|
|00004960| 65 2c 20 73 74 61 74 65 | 6d 65 6e 74 73 20 6c 69 |e, state|ments li|
|00004970| 6b 65 0a 20 20 20 20 5c | 62 71 0a 20 20 20 20 73 |ke. \|bq. s|
|00004980| 65 74 20 70 61 72 61 6d | 65 74 65 72 73 20 46 49 |et param|eters FI|
|00004990| 54 50 41 52 20 32 5c 5c | 0a 20 20 20 20 6c 65 74 |TPAR 2\\|. let|
|000049a0| 20 46 49 54 50 41 52 20 | 3d 20 33 5c 5c 0a 20 20 | FITPAR |= 3\\. |
|000049b0| 20 20 6c 65 74 20 56 45 | 43 54 4f 52 20 3d 20 33 | let VE|CTOR = 3|
|000049c0| 5c 5c 0a 20 20 20 20 6c | 65 74 20 46 49 54 50 41 |\\. l|et FITPA|
|000049d0| 52 5b 32 5d 20 3d 20 33 | 2a 73 69 6e 28 70 69 29 |R[2] = 3|*sin(pi)|
|000049e0| 20 2a 20 56 45 43 54 4f | 52 5b 34 5d 20 5c 65 71 | * VECTO|R[4] \eq|
|000049f0| 0a 20 20 20 20 61 6c 6c | 20 61 72 65 20 65 78 61 |. all| are exa|
|00004a00| 6d 70 6c 65 73 20 6f 66 | 20 74 68 65 20 70 6f 73 |mples of| the pos|
|00004a10| 73 69 62 6c 65 20 64 65 | 63 6c 61 72 61 74 69 6f |sible de|claratio|
|00004a20| 6e 20 61 6e 64 20 75 73 | 61 67 65 20 6f 66 20 70 |n and us|age of p|
|00004a30| 61 72 61 6d 65 74 65 72 | 73 2e 0a 0a 20 20 20 20 |arameter|s... |
|00004a40| 41 73 20 77 69 74 68 20 | 76 65 63 74 6f 72 73 2c |As with |vectors,|
|00004a50| 20 70 61 72 61 6d 65 74 | 65 72 73 20 63 61 6e 20 | paramet|ers can |
|00004a60| 62 65 20 64 69 73 70 6c | 61 79 65 64 2c 20 73 61 |be displ|ayed, sa|
|00004a70| 76 65 64 2c 20 61 70 70 | 65 6e 64 65 64 20 75 73 |ved, app|ended us|
|00004a80| 69 6e 67 0a 20 20 20 20 | 74 68 65 20 73 61 6d 65 |ing. |the same|
|00004a90| 20 72 61 6e 67 65 20 6f | 66 20 63 6f 6d 6d 61 6e | range o|f comman|
|00004aa0| 64 73 20 7b 5c 74 74 20 | 61 70 70 65 6e 64 7d 2c |ds {\tt |append},|
|00004ab0| 20 7b 5c 74 74 20 73 61 | 76 65 7d 2c 20 7b 5c 74 | {\tt sa|ve}, {\t|
|00004ac0| 74 20 73 68 6f 77 20 70 | 61 72 61 6d 65 74 65 72 |t show p|arameter|
|00004ad0| 73 7d 2e 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |s}...\su|bsection|
|00004ae0| 7b 53 63 61 6c 61 72 20 | 56 61 72 69 61 62 6c 65 |{Scalar |Variable|
|00004af0| 73 7d 0a 20 20 20 20 53 | 63 61 6c 61 72 20 76 61 |s}. S|calar va|
|00004b00| 72 69 61 62 6c 65 73 20 | 68 61 76 65 20 6c 6f 77 |riables |have low|
|00004b10| 65 72 20 63 61 73 65 20 | 6e 61 6d 65 73 20 61 6e |er case |names an|
|00004b20| 64 20 61 72 65 20 61 6c | 6c 6f 63 61 74 65 64 20 |d are al|located |
|00004b30| 61 73 20 74 68 65 79 0a | 20 20 20 20 61 72 65 20 |as they.| are |
|00004b40| 69 6e 74 72 6f 64 75 63 | 65 64 20 6f 6e 20 74 68 |introduc|ed on th|
|00004b50| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2e 20 |e comman|d line. |
|00004b60| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 0a 20 20 20 |For exam|ple,. |
|00004b70| 20 5c 62 71 20 6c 65 74 | 20 78 2b 2b 5c 5c 0a 20 | \bq let| x++\\. |
|00004b80| 20 20 20 6c 65 74 20 79 | 3d 59 5b 34 5d 5c 5c 0a | let y|=Y[4]\\.|
|00004b90| 20 20 20 20 6c 65 74 20 | 7a 3d 78 2a 79 20 5c 65 | let |z=x*y \e|
|00004ba0| 71 0a 20 20 20 20 61 72 | 65 20 61 6c 6c 20 6c 65 |q. ar|e all le|
|00004bb0| 67 61 6c 20 63 6f 6d 6d | 61 6e 64 73 2e 20 4e 6f |gal comm|ands. No|
|00004bc0| 74 65 20 74 68 61 74 20 | 74 68 65 20 66 69 72 73 |te that |the firs|
|00004bd0| 74 20 65 78 61 6d 70 6c | 65 20 69 6e 63 72 65 6d |t exampl|e increm|
|00004be0| 65 6e 74 73 0a 20 20 20 | 20 76 61 72 69 61 62 6c |ents. | variabl|
|00004bf0| 65 20 24 78 24 20 6f 6e | 6c 79 20 69 66 20 69 74 |e $x$ on|ly if it|
|00004c00| 20 61 6c 72 65 61 64 79 | 20 65 78 69 73 74 73 2e | already| exists.|
|00004c10| 20 49 6e 20 74 65 72 6d | 73 20 6f 66 20 61 73 73 | In term|s of ass|
|00004c20| 69 67 6e 6d 65 6e 74 2c | 0a 20 20 20 20 61 20 76 |ignment,|. a v|
|00004c30| 65 63 74 6f 72 20 6f 72 | 20 70 61 72 61 6d 65 74 |ector or| paramet|
|00004c40| 65 72 0a 20 20 20 20 65 | 6c 65 6d 65 6e 74 20 69 |er. e|lement i|
|00004c50| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 61 73 20 |s consid|ered as |
|00004c60| 61 20 76 61 72 69 61 62 | 6c 65 2e 20 56 61 72 69 |a variab|le. Vari|
|00004c70| 61 62 6c 65 73 20 63 61 | 6e 20 61 6c 73 6f 0a 20 |ables ca|n also. |
|00004c80| 20 20 20 62 65 20 6d 69 | 78 65 64 20 77 69 74 68 | be mi|xed with|
|00004c90| 20 76 65 63 74 6f 72 73 | 20 73 75 63 68 20 61 73 | vectors| such as|
|00004ca0| 20 69 6e 0a 20 20 20 20 | 5c 62 71 20 6c 65 74 20 | in. |\bq let |
|00004cb0| 58 3d 33 5c 5e 7b 20 7d | 78 5c 5c 0a 20 20 20 20 |X=3\^{ }|x\\. |
|00004cc0| 6c 65 74 20 59 3d 78 2b | 5a 5c 5c 0a 20 20 20 20 |let Y=x+|Z\\. |
|00004cd0| 6c 65 74 20 4e 3d 6e 2b | 2b 5c 5c 0a 20 20 20 20 |let N=n+|+\\. |
|00004ce0| 6c 65 74 20 5a 3d 63 6f | 73 28 58 2f 61 20 2b 20 |let Z=co|s(X/a + |
|00004cf0| 5a 5b 78 5d 29 20 5c 65 | 71 0a 20 20 20 20 62 75 |Z[x]) \e|q. bu|
|00004d00| 74 20 73 74 61 74 65 6d | 65 6e 74 73 20 61 73 0a |t statem|ents as.|
|00004d10| 20 20 20 20 5c 62 71 20 | 6c 65 74 20 78 3d 58 2b | \bq |let x=X+|
|00004d20| 5a 5c 65 71 0a 20 20 20 | 20 61 72 65 20 63 6c 65 |Z\eq. | are cle|
|00004d30| 61 72 6c 79 20 6e 6f 74 | 20 6c 65 67 61 6c 2e 0a |arly not| legal..|
|00004d40| 0a 20 20 20 20 56 61 72 | 69 61 62 6c 65 73 20 63 |. Var|iables c|
|00004d50| 61 6e 20 62 65 20 73 61 | 76 65 64 2c 20 61 70 70 |an be sa|ved, app|
|00004d60| 65 6e 64 65 64 20 74 6f | 20 61 20 66 69 6c 65 2c |ended to| a file,|
|00004d70| 20 77 69 74 68 20 74 68 | 65 20 7b 5c 74 74 20 61 | with th|e {\tt a|
|00004d80| 70 70 65 6e 64 20 76 61 | 72 69 61 62 6c 65 73 7d |ppend va|riables}|
|00004d90| 0a 20 20 20 20 61 6e 64 | 20 7b 5c 74 74 20 73 61 |. and| {\tt sa|
|00004da0| 76 65 20 76 61 72 69 61 | 62 6c 65 73 7d 20 63 6f |ve varia|bles} co|
|00004db0| 6d 6d 61 6e 64 73 2e 20 | 54 68 65 79 20 63 61 6e |mmands. |They can|
|00004dc0| 20 62 65 20 64 69 73 70 | 6c 61 79 65 64 20 61 74 | be disp|layed at|
|00004dd0| 20 61 6e 79 20 74 69 6d | 65 0a 20 20 20 20 77 69 | any tim|e. wi|
|00004de0| 74 68 20 74 68 65 20 7b | 5c 74 74 20 73 68 6f 77 |th the {|\tt show|
|00004df0| 20 76 61 72 69 61 62 6c | 65 73 7d 20 63 6f 6d 6d | variabl|es} comm|
|00004e00| 61 6e 64 2e 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |and...\s|ubsectio|
|00004e10| 6e 7b 53 74 72 69 6e 67 | 20 56 61 72 69 61 62 6c |n{String| Variabl|
|00004e20| 65 73 7d 0a 20 20 20 20 | 53 74 72 69 6e 67 20 76 |es}. |String v|
|00004e30| 61 72 69 61 62 6c 65 73 | 20 63 61 6e 20 61 6c 73 |ariables| can als|
|00004e40| 6f 20 62 65 20 63 72 65 | 61 74 65 64 20 61 73 20 |o be cre|ated as |
|00004e50| 6e 65 65 64 65 64 2e 20 | 41 6e 79 20 6e 61 6d 65 |needed. |Any name|
|00004e60| 20 63 6f 6e 73 69 73 74 | 69 6e 67 0a 20 20 20 20 | consist|ing. |
|00004e70| 6f 66 20 62 6f 74 68 20 | 6c 6f 77 65 72 20 63 61 |of both |lower ca|
|00004e80| 73 65 20 61 6e 64 20 75 | 70 70 65 72 20 63 61 73 |se and u|pper cas|
|00004e90| 65 20 6c 65 74 74 65 72 | 73 20 77 69 6c 6c 20 62 |e letter|s will b|
|00004ea0| 65 20 63 6f 6e 73 69 64 | 65 72 65 64 20 61 73 20 |e consid|ered as |
|00004eb0| 61 20 73 74 72 69 6e 67 | 0a 20 20 20 20 76 61 72 |a string|. var|
|00004ec0| 69 61 62 6c 65 2e 20 53 | 74 61 74 65 6d 65 6e 74 |iable. S|tatement|
|00004ed0| 73 20 6c 69 6b 65 0a 20 | 20 20 20 5c 62 71 0a 20 |s like. | \bq. |
|00004ee0| 20 20 20 6c 65 74 20 53 | 74 72 69 6e 67 20 3d 20 | let S|tring = |
|00004ef0| 22 48 65 6c 6c 6f 22 5c | 5c 0a 20 20 20 20 6c 65 |"Hello"\|\. le|
|00004f00| 74 20 4f 74 68 65 72 5c | 5f 53 74 72 69 6e 67 20 |t Other\|_String |
|00004f10| 3d 20 53 74 72 69 6e 67 | 5c 5c 0a 20 20 20 20 6c |= String|\\. l|
|00004f20| 65 74 20 53 74 72 69 6e | 67 31 20 3d 20 22 47 6f |et Strin|g1 = "Go|
|00004f30| 6f 64 22 5c 5c 0a 20 20 | 20 20 6c 65 74 20 53 74 |od"\\. | let St|
|00004f40| 72 69 6e 67 32 20 3d 20 | 22 20 42 79 65 21 22 5c |ring2 = |" Bye!"\|
|00004f50| 5c 0a 20 20 20 20 6c 65 | 74 20 53 74 72 69 6e 67 |\. le|t String|
|00004f60| 33 20 3d 20 53 74 72 69 | 6e 67 31 20 2b 20 53 74 |3 = Stri|ng1 + St|
|00004f70| 72 69 6e 67 32 5c 5c 0a | 20 20 20 20 6c 65 74 20 |ring2\\.| let |
|00004f80| 53 74 72 69 6e 67 34 20 | 3d 20 53 74 72 69 6e 67 |String4 |= String|
|00004f90| 31 20 2d 20 22 6f 64 22 | 5c 5c 0a 20 20 20 20 6c |1 - "od"|\\. l|
|00004fa0| 65 74 20 49 6e 70 75 74 | 20 3d 20 52 65 61 64 28 |et Input| = Read(|
|00004fb0| 29 5c 5c 0a 20 20 20 20 | 6c 65 74 20 79 20 3d 20 |)\\. |let y = |
|00004fc0| 73 63 61 6e 28 52 65 61 | 64 28 29 2c 20 22 5c 25 |scan(Rea|d(), "\%|
|00004fd0| 6c 66 22 29 5c 5c 0a 20 | 20 20 20 6c 65 74 20 78 |lf")\\. | let x|
|00004fe0| 20 3d 20 28 4f 74 68 65 | 72 5c 5f 73 74 72 69 6e | = (Othe|r\_strin|
|00004ff0| 67 20 3d 3d 20 53 74 72 | 69 6e 67 29 5c 5c 0a 20 |g == Str|ing)\\. |
|00005000| 20 20 20 6c 65 74 20 79 | 20 3d 20 28 4f 74 68 65 | let y| = (Othe|
|00005010| 72 5c 5f 73 74 72 69 6e | 67 20 21 3d 20 22 57 68 |r\_strin|g != "Wh|
|00005020| 61 74 20 69 73 20 67 6f | 69 6e 67 20 6f 6e 3f 20 |at is go|ing on? |
|00005030| 5c 76 65 72 62 2b 5c 6e | 2b 22 29 0a 20 20 20 20 |\verb+\n|+"). |
|00005040| 5c 65 71 0a 20 20 20 20 | 61 72 65 20 74 68 75 73 |\eq. |are thus|
|00005050| 20 70 65 72 6d 69 74 74 | 65 64 2e 20 54 68 65 20 | permitt|ed. The |
|00005060| 6f 6e 6c 79 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |only ope|rations |
|00005070| 70 65 72 6d 69 74 74 65 | 64 20 6f 6e 20 73 74 72 |permitte|d on str|
|00005080| 69 6e 67 0a 20 20 20 20 | 76 61 72 69 61 62 6c 65 |ing. |variable|
|00005090| 73 20 61 72 65 20 74 68 | 65 20 65 71 75 61 6c 69 |s are th|e equali|
|000050a0| 74 79 20 6f 70 65 72 61 | 74 6f 72 73 2c 20 74 68 |ty opera|tors, th|
|000050b0| 65 20 61 64 64 69 74 69 | 6f 6e 20 6f 70 65 72 61 |e additi|on opera|
|000050c0| 74 6f 72 2c 20 74 68 65 | 0a 20 20 20 20 73 75 62 |tor, the|. sub|
|000050d0| 74 72 61 63 74 69 6f 6e | 20 6f 70 65 72 61 74 6f |traction| operato|
|000050e0| 72 2c 20 61 6e 64 20 74 | 6f 20 62 65 20 61 72 67 |r, and t|o be arg|
|000050f0| 75 6d 65 6e 74 73 20 6f | 66 20 73 74 72 69 6e 67 |uments o|f string|
|00005100| 20 66 75 6e 63 74 69 6f | 6e 73 0a 20 20 20 20 73 | functio|ns. s|
|00005110| 75 63 68 20 61 73 20 7b | 5c 74 74 20 73 63 61 6e |uch as {|\tt scan|
|00005120| 7d 20 66 75 6e 63 74 69 | 6f 6e 2e 20 49 6e 20 74 |} functi|on. In t|
|00005130| 68 65 20 70 72 65 76 69 | 6f 75 73 20 65 78 61 6d |he previ|ous exam|
|00005140| 70 6c 65 2c 20 24 78 24 | 20 61 6e 64 20 24 79 24 |ple, $x$| and $y$|
|00005150| 0a 20 20 20 20 77 69 6c | 6c 20 62 6f 74 68 20 62 |. wil|l both b|
|00005160| 65 20 73 65 74 20 74 6f | 20 31 2e 20 4e 6f 74 65 |e set to| 1. Note|
|00005170| 20 74 68 61 74 20 74 68 | 65 20 7b 5c 74 74 20 52 | that th|e {\tt R|
|00005180| 65 61 64 7d 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |ead} fun|ction re|
|00005190| 74 75 72 6e 73 20 61 0a | 20 20 20 20 73 74 72 69 |turns a.| stri|
|000051a0| 6e 67 2e 0a 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |ng...\su|bsection|
|000051b0| 7b 43 6f 6e 73 74 61 6e | 74 73 20 61 6e 64 20 53 |{Constan|ts and S|
|000051c0| 74 72 69 6e 67 20 43 6f | 6e 73 74 61 6e 74 73 7d |tring Co|nstants}|
|000051d0| 0a 20 20 20 20 41 20 63 | 6f 6e 73 74 61 6e 74 20 |. A c|onstant |
|000051e0| 69 73 20 61 20 76 61 72 | 69 61 62 6c 65 20 74 68 |is a var|iable th|
|000051f0| 61 74 20 69 73 20 6c 6f | 63 6b 65 64 20 74 6f 20 |at is lo|cked to |
|00005200| 69 74 73 20 76 61 6c 75 | 65 2e 20 49 74 20 63 61 |its valu|e. It ca|
|00005210| 6e 20 62 65 20 75 73 65 | 64 0a 20 20 20 20 61 74 |n be use|d. at|
|00005220| 20 74 68 65 20 73 61 6d | 65 20 70 6c 61 63 65 20 | the sam|e place |
|00005230| 61 20 76 61 72 69 61 62 | 6c 65 20 63 61 6e 20 62 |a variab|le can b|
|00005240| 65 20 65 78 63 65 70 74 | 20 74 68 61 74 20 63 68 |e except| that ch|
|00005250| 61 6e 67 69 6e 67 20 69 | 74 73 20 76 61 6c 75 65 |anging i|ts value|
|00005260| 0a 20 20 20 20 77 69 6c | 6c 20 72 65 73 75 6c 74 |. wil|l result|
|00005270| 20 69 6e 20 61 20 70 61 | 72 73 69 6e 67 20 65 72 | in a pa|rsing er|
|00005280| 72 6f 72 2e 0a 20 20 20 | 20 5c 66 75 64 67 69 74 |ror.. | \fudgit|
|00005290| 5c 20 63 6f 6e 74 61 69 | 6e 73 20 34 20 62 75 69 |\ contai|ns 4 bui|
|000052a0| 6c 74 2d 69 6e 0a 20 20 | 20 20 73 63 61 6c 61 72 |lt-in. | scalar|
|000052b0| 20 63 6f 6e 73 74 61 6e | 74 73 3a 20 7b 5c 74 74 | constan|ts: {\tt|
|000052c0| 20 70 69 7d 20 3d 20 24 | 5c 70 69 24 2c 20 7b 5c | pi} = $|\pi$, {\|
|000052d0| 74 74 20 65 7d 20 3d 20 | 4e 65 70 65 72 69 61 6e |tt e} = |Neperian|
|000052e0| 20 6e 75 6d 62 65 72 20 | 24 65 24 2c 20 61 6e 64 | number |$e$, and|
|000052f0| 0a 20 20 20 20 7b 5c 74 | 74 20 63 68 69 32 7d 20 |. {\t|t chi2} |
|00005300| 77 68 69 63 68 20 63 6f | 6e 74 61 69 6e 73 20 74 |which co|ntains t|
|00005310| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 24 5c 63 68 |he value| of $\ch|
|00005320| 69 5e 32 24 20 61 73 20 | 6f 62 74 61 69 6e 65 64 |i^2$ as |obtained|
|00005330| 20 66 72 6f 6d 0a 20 20 | 20 20 74 68 65 20 6c 61 | from. | the la|
|00005340| 73 74 20 66 69 74 2e 20 | 46 69 6e 61 6c 6c 79 2c |st fit. |Finally,|
|00005350| 20 7b 5c 74 74 20 64 61 | 74 61 7d 20 63 6f 6e 74 | {\tt da|ta} cont|
|00005360| 61 69 6e 73 20 74 68 65 | 20 65 66 66 65 63 74 69 |ains the| effecti|
|00005370| 76 65 20 73 69 7a 65 0a | 20 20 20 20 6f 66 20 61 |ve size.| of a|
|00005380| 6c 6c 20 76 65 63 74 6f | 72 73 2e 0a 0a 20 20 20 |ll vecto|rs... |
|00005390| 20 54 68 65 72 65 20 61 | 72 65 20 61 6c 73 6f 20 | There a|re also |
|000053a0| 33 20 62 75 69 6c 74 2d | 69 6e 0a 20 20 20 20 73 |3 built-|in. s|
|000053b0| 74 72 69 6e 67 20 63 6f | 6e 73 74 61 6e 74 73 3a |tring co|nstants:|
|000053c0| 20 7b 5c 74 74 20 52 65 | 61 64 46 69 6c 65 7d 20 | {\tt Re|adFile} |
|000053d0| 68 6f 6c 64 69 6e 67 20 | 74 68 65 20 6e 61 6d 65 |holding |the name|
|000053e0| 20 6f 66 20 74 68 65 20 | 6c 61 73 74 0a 20 20 20 | of the |last. |
|000053f0| 20 66 69 6c 65 20 72 65 | 61 64 20 62 79 20 74 68 | file re|ad by th|
|00005400| 65 20 7b 5c 74 74 20 72 | 65 61 64 7d 20 63 6f 6d |e {\tt r|ead} com|
|00005410| 6d 61 6e 64 2c 20 7b 5c | 74 74 20 54 6d 70 7d 0a |mand, {\|tt Tmp}.|
|00005420| 20 20 20 20 68 6f 6c 64 | 69 6e 67 20 61 20 74 65 | hold|ing a te|
|00005430| 6d 70 6f 72 61 72 79 20 | 66 69 6c 65 6e 61 6d 65 |mporary |filename|
|00005440| 20 63 6f 6e 73 69 73 74 | 69 6e 67 20 6f 66 0a 20 | consist|ing of. |
|00005450| 20 20 20 7b 5c 69 74 20 | 2f 74 6d 70 2f 66 75 64 | {\it |/tmp/fud|
|00005460| 67 69 74 50 49 44 7d 2c | 20 77 68 65 72 65 20 7b |gitPID},| where {|
|00005470| 5c 69 74 20 50 49 44 7d | 20 68 6f 6c 64 73 20 66 |\it PID}| holds f|
|00005480| 6f 72 0a 20 20 20 20 61 | 20 75 6e 69 71 75 65 20 |or. a| unique |
|00005490| 6e 75 6d 62 65 72 20 64 | 65 73 63 72 69 62 69 6e |number d|escribin|
|000054a0| 67 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 72 |g the cu|rrent pr|
|000054b0| 6f 63 65 73 73 2c 0a 20 | 20 20 20 61 6e 64 20 66 |ocess,. | and f|
|000054c0| 69 6e 61 6c 6c 79 20 7b | 5c 74 74 20 43 77 64 7d |inally {|\tt Cwd}|
|000054d0| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 65 20 | contain|ing the |
|000054e0| 6e 61 6d 65 20 6f 66 20 | 74 68 65 0a 20 20 20 20 |name of |the. |
|000054f0| 63 75 72 72 65 6e 74 20 | 77 6f 72 6b 69 6e 67 20 |current |working |
|00005500| 64 69 72 65 63 74 6f 72 | 79 2e 0a 20 20 20 20 43 |director|y.. C|
|00005510| 6f 6e 73 74 61 6e 74 73 | 20 61 6e 64 20 76 61 72 |onstants| and var|
|00005520| 69 61 62 6c 65 73 20 28 | 65 69 74 68 65 72 20 73 |iables (|either s|
|00005530| 63 61 6c 61 72 73 20 6f | 72 20 73 74 72 69 6e 67 |calars o|r string|
|00005540| 73 29 20 63 61 6e 0a 20 | 20 20 20 62 65 20 74 72 |s) can. | be tr|
|00005550| 61 6e 73 66 6f 72 6d 65 | 64 20 69 6e 20 6f 6e 65 |ansforme|d in one|
|00005560| 20 61 6e 6f 74 68 65 72 | 20 75 73 69 6e 67 20 7b | another| using {|
|00005570| 5c 74 74 20 6c 6f 63 6b | 7d 20 61 6e 64 20 7b 5c |\tt lock|} and {\|
|00005580| 74 74 20 75 6e 6c 6f 63 | 6b 7d 0a 20 20 20 20 63 |tt unloc|k}. c|
|00005590| 6f 6d 6d 61 6e 64 73 20 | 73 6f 20 74 68 61 74 20 |ommands |so that |
|000055a0| 74 68 65 20 75 73 65 72 | 20 63 61 6e 20 62 75 69 |the user| can bui|
|000055b0| 6c 64 20 68 69 73 20 6f | 77 6e 20 63 6f 6e 73 74 |ld his o|wn const|
|000055c0| 61 6e 74 73 20 61 74 20 | 61 6e 79 20 74 69 6d 65 |ants at |any time|
|000055d0| 2e 0a 0a 20 20 20 20 54 | 68 65 20 6c 69 6e 6b 65 |... T|he linke|
|000055e0| 64 20 6c 69 73 74 20 6f | 66 20 61 6c 6c 20 76 65 |d list o|f all ve|
|000055f0| 63 74 6f 72 73 2c 20 70 | 61 72 61 6d 65 74 65 72 |ctors, p|arameter|
|00005600| 73 2c 0a 20 20 20 20 76 | 61 72 69 61 62 6c 65 73 |s,. v|ariables|
|00005610| 2c 20 63 6f 6e 73 74 61 | 6e 74 73 2c 20 66 75 6e |, consta|nts, fun|
|00005620| 63 74 69 6f 6e 73 20 61 | 6e 64 20 70 72 6f 63 65 |ctions a|nd proce|
|00005630| 64 75 72 65 73 20 63 61 | 6e 20 62 65 0a 20 20 20 |dures ca|n be. |
|00005640| 20 64 69 73 70 6c 61 79 | 65 64 20 62 79 20 74 68 | display|ed by th|
|00005650| 65 20 7b 5c 74 74 20 73 | 68 6f 77 20 74 61 62 6c |e {\tt s|how tabl|
|00005660| 65 7d 20 63 6f 6d 6d 61 | 6e 64 2e 0a 0a 5c 73 65 |e} comma|nd...\se|
|00005670| 63 74 69 6f 6e 7b 43 2d | 63 61 6c 63 75 6c 61 74 |ction{C-|calculat|
|00005680| 6f 72 20 4d 6f 64 65 20 | 45 73 73 65 6e 74 69 61 |or Mode |Essentia|
|00005690| 6c 73 7d 0a 20 20 20 20 | 54 68 65 20 43 2d 63 61 |ls}. |The C-ca|
|000056a0| 6c 63 75 6c 61 74 6f 72 | 20 6d 6f 64 65 20 69 73 |lculator| mode is|
|000056b0| 20 74 68 65 20 6d 6f 64 | 65 20 64 65 61 6c 69 6e | the mod|e dealin|
|000056c0| 67 20 77 69 74 68 20 74 | 68 65 20 6d 61 74 68 65 |g with t|he mathe|
|000056d0| 6d 61 74 69 63 61 6c 0a | 20 20 20 20 74 72 61 6e |matical.| tran|
|000056e0| 73 66 6f 72 6d 61 74 69 | 6f 6e 73 20 6f 66 20 74 |sformati|ons of t|
|000056f0| 68 65 20 76 61 72 69 61 | 62 6c 65 73 2e 20 49 74 |he varia|bles. It|
|00005700| 20 68 61 73 20 61 63 63 | 65 73 73 20 74 6f 20 74 | has acc|ess to t|
|00005710| 68 65 20 43 20 66 75 6e | 63 74 69 6f 6e 73 0a 20 |he C fun|ctions. |
|00005720| 20 20 20 6f 66 20 74 68 | 65 20 6d 61 74 68 65 6d | of th|e mathem|
|00005730| 61 74 69 63 61 6c 20 6c | 69 62 72 61 72 79 20 73 |atical l|ibrary s|
|00005740| 75 63 68 20 61 73 20 24 | 5c 73 69 6e 28 78 29 2c |uch as $|\sin(x),|
|00005750| 20 5c 63 6f 73 28 78 29 | 2c 20 5c 74 61 6e 28 78 | \cos(x)|, \tan(x|
|00005760| 29 2c 0a 20 20 20 20 5c | 6c 6e 28 78 29 2c 20 5c |),. \|ln(x), \|
|00005770| 6c 6f 67 28 78 29 2c 20 | 5c 65 78 70 28 78 29 24 |log(x), |\exp(x)$|
|00005780| 20 61 6e 64 20 6d 6f 72 | 65 20 66 61 6e 63 79 20 | and mor|e fancy |
|00005790| 66 75 6e 63 74 69 6f 6e | 73 20 73 75 63 68 20 61 |function|s such a|
|000057a0| 73 20 72 61 6e 64 6f 6d | 0a 20 20 20 20 6e 75 6d |s random|. num|
|000057b0| 62 65 72 20 67 65 6e 65 | 72 61 74 6f 72 73 2c 20 |ber gene|rators, |
|000057c0| 42 65 73 73 65 6c 20 66 | 75 6e 63 74 69 6f 6e 73 |Bessel f|unctions|
|000057d0| 20 6f 66 20 74 68 65 20 | 66 69 72 73 74 20 61 6e | of the |first an|
|000057e0| 64 20 73 65 63 6f 6e 64 | 20 6b 69 6e 64 2c 0a 20 |d second| kind,. |
|000057f0| 20 20 20 65 72 72 6f 72 | 20 66 75 6e 63 74 69 6f | error| functio|
|00005800| 6e 2c 20 47 61 6d 6d 61 | 20 66 75 6e 63 74 69 6f |n, Gamma| functio|
|00005810| 6e 20 61 6e 64 20 73 6f | 20 6f 6e 5c 6c 64 6f 74 |n and so| on\ldot|
|00005820| 73 0a 0a 20 20 20 20 41 | 6c 6c 20 6f 70 65 72 61 |s.. A|ll opera|
|00005830| 74 6f 72 73 20 6f 66 20 | 43 20 61 72 65 20 73 75 |tors of |C are su|
|00005840| 70 70 6f 72 74 65 64 20 | 77 69 74 68 20 74 68 65 |pported |with the|
|00005850| 20 65 78 63 65 70 74 69 | 6f 6e 20 6f 66 20 70 6f | excepti|on of po|
|00005860| 69 6e 74 65 72 20 61 6e | 64 0a 20 20 20 20 62 69 |inter an|d. bi|
|00005870| 74 77 69 73 65 20 6f 70 | 65 72 61 74 6f 72 73 2e |twise op|erators.|
|00005880| 0a 20 20 20 20 41 6e 20 | 65 78 74 72 61 20 5c 5e |. An |extra \^|
|00005890| 7b 20 7d 20 65 78 70 6f | 6e 65 6e 74 69 61 74 69 |{ } expo|nentiati|
|000058a0| 6f 6e 20 6f 70 65 72 61 | 74 6f 72 20 68 61 73 20 |on opera|tor has |
|000058b0| 62 65 65 6e 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |been imp|lemented|
|000058c0| 2e 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 43 |...\subs|ection{C|
|000058d0| 6f 6d 70 75 74 61 74 69 | 6f 6e 61 6c 20 45 72 72 |omputati|onal Err|
|000058e0| 6f 72 73 7d 0a 20 20 20 | 20 41 6c 6c 20 6d 61 74 |ors}. | All mat|
|000058f0| 68 65 6d 61 74 69 63 61 | 6c 20 66 75 6e 63 74 69 |hematica|l functi|
|00005900| 6f 6e 73 2c 20 65 78 70 | 6f 6e 65 6e 74 69 61 74 |ons, exp|onentiat|
|00005910| 69 6f 6e 20 6f 70 65 72 | 61 74 6f 72 20 61 6e 64 |ion oper|ator and|
|00005920| 0a 20 20 20 20 64 69 76 | 69 73 69 6f 6e 73 20 61 |. div|isions a|
|00005930| 72 65 20 63 68 65 63 6b | 65 64 20 66 6f 72 20 65 |re check|ed for e|
|00005940| 72 72 6f 72 2e 20 43 6f | 6d 70 75 74 61 74 69 6f |rror. Co|mputatio|
|00005950| 6e 61 6c 20 65 72 72 6f | 72 73 20 69 6e 76 6f 6c |nal erro|rs invol|
|00005960| 76 65 0a 20 20 20 20 69 | 6e 66 69 6e 69 74 79 20 |ve. i|nfinity |
|00005970| 76 61 6c 75 65 73 2c 20 | 6e 6f 74 20 61 20 6e 75 |values, |not a nu|
|00005980| 6d 62 65 72 2c 20 6f 75 | 74 20 6f 66 20 72 61 6e |mber, ou|t of ran|
|00005990| 67 65 2c 20 61 6e 64 20 | 6f 75 74 20 6f 66 20 64 |ge, and |out of d|
|000059a0| 6f 6d 61 69 6e 2e 0a 20 | 20 20 20 54 68 65 20 75 |omain.. | The u|
|000059b0| 73 65 72 20 63 61 6e 20 | 73 65 6c 65 63 74 20 77 |ser can |select w|
|000059c0| 68 61 74 20 6b 69 6e 64 | 20 6f 66 20 63 68 65 63 |hat kind| of chec|
|000059d0| 6b 73 20 73 68 65 20 6f | 72 20 68 65 20 77 61 6e |ks she o|r he wan|
|000059e0| 74 73 20 74 6f 20 68 61 | 76 65 2e 0a 20 20 20 20 |ts to ha|ve.. |
|000059f0| 54 68 65 20 66 69 72 73 | 74 20 74 77 6f 20 61 72 |The firs|t two ar|
|00005a00| 65 20 76 61 6c 75 65 73 | 20 77 68 65 72 65 61 73 |e values| whereas|
|00005a10| 20 74 68 65 20 6c 61 73 | 74 20 74 77 6f 20 61 72 | the las|t two ar|
|00005a20| 65 20 65 72 72 6f 72 20 | 6e 75 6d 62 65 72 73 0a |e error |numbers.|
|00005a30| 20 20 20 20 73 65 74 20 | 62 79 20 74 68 65 20 76 | set |by the v|
|00005a40| 61 72 69 6f 75 73 20 6d | 61 74 68 65 6d 61 74 69 |arious m|athemati|
|00005a50| 63 61 6c 20 66 75 6e 63 | 74 69 6f 6e 73 2e 0a 20 |cal func|tions.. |
|00005a60| 20 20 20 54 68 69 73 20 | 69 73 20 64 6f 6e 65 20 | This |is done |
|00005a70| 75 73 69 6e 67 20 74 68 | 65 20 7b 5c 74 74 20 73 |using th|e {\tt s|
|00005a80| 65 74 20 65 72 72 6f 72 | 7d 20 63 6f 6d 6d 61 6e |et error|} comman|
|00005a90| 64 2e 20 54 68 65 20 75 | 73 65 72 20 68 61 73 0a |d. The u|ser has.|
|00005aa0| 20 20 20 20 74 68 65 20 | 63 68 6f 69 63 65 20 61 | the |choice a|
|00005ab0| 6d 6f 6e 67 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |mong the| followi|
|00005ac0| 6e 67 20 63 68 65 63 6b | 73 3a 0a 0a 20 20 20 20 |ng check|s:.. |
|00005ad0| 5c 62 65 67 69 6e 7b 64 | 65 73 63 72 69 70 74 69 |\begin{d|escripti|
|00005ae0| 6f 6e 7d 0a 20 20 20 20 | 5c 69 74 65 6d 5b 49 6e |on}. |\item[In|
|00005af0| 66 69 6e 69 74 79 5d 20 | 41 20 76 61 6c 75 65 20 |finity] |A value |
|00005b00| 6f 66 20 74 68 61 74 20 | 6b 69 6e 64 20 72 65 73 |of that |kind res|
|00005b10| 75 6c 74 73 20 66 72 6f | 6d 0a 20 20 20 20 61 20 |ults fro|m. a |
|00005b20| 64 69 76 69 73 69 6f 6e | 20 62 79 20 7a 65 72 6f |division| by zero|
|00005b30| 20 6f 72 20 69 66 20 74 | 68 65 20 76 61 6c 75 65 | or if t|he value|
|00005b40| 20 72 65 73 75 6c 74 69 | 6e 67 20 66 72 6f 6d 0a | resulti|ng from.|
|00005b50| 20 20 20 20 61 20 6d 61 | 74 68 65 6d 61 74 69 63 | a ma|thematic|
|00005b60| 61 6c 20 66 75 6e 63 74 | 69 6f 6e 20 63 61 6e 6e |al funct|ion cann|
|00005b70| 6f 74 20 62 65 20 72 65 | 70 72 65 73 65 6e 74 65 |ot be re|presente|
|00005b80| 64 20 62 79 20 74 68 65 | 20 63 6f 6d 70 75 74 65 |d by the| compute|
|00005b90| 72 2e 0a 20 20 20 20 54 | 68 65 20 6e 75 6d 62 65 |r.. T|he numbe|
|00005ba0| 72 20 72 65 70 72 65 73 | 65 6e 74 61 74 69 6f 6e |r repres|entation|
|00005bb0| 20 6c 69 6d 69 74 0a 20 | 20 20 20 69 73 20 31 2e | limit. | is 1.|
|00005bc0| 30 65 2b 33 30 38 20 66 | 6f 72 20 6d 6f 73 74 20 |0e+308 f|or most |
|00005bd0| 36 34 20 62 69 74 73 20 | 64 6f 75 62 6c 65 20 6d |64 bits |double m|
|00005be0| 61 63 68 69 6e 65 73 2e | 20 54 6f 20 67 69 76 65 |achines.| To give|
|00005bf0| 20 61 6e 20 69 64 65 61 | 2c 0a 20 20 20 20 74 68 | an idea|,. th|
|00005c00| 65 20 65 78 70 6f 6e 65 | 6e 74 69 61 6c 20 24 65 |e expone|ntial $e|
|00005c10| 5e 7b 37 31 30 7d 24 20 | 63 61 6e 6e 6f 74 20 62 |^{710}$ |cannot b|
|00005c20| 65 20 72 65 70 72 65 73 | 65 6e 74 65 64 2e 20 4e |e repres|ented. N|
|00005c30| 6f 74 65 0a 20 20 20 20 | 74 68 61 74 20 74 68 65 |ote. |that the|
|00005c40| 20 69 6e 66 69 6e 69 74 | 79 20 76 61 6c 75 65 20 | infinit|y value |
|00005c50| 69 73 20 73 69 67 6e 65 | 64 20 6f 6e 20 73 6f 6d |is signe|d on som|
|00005c60| 65 20 6d 61 63 68 69 6e | 65 73 2c 20 65 2e 67 2c |e machin|es, e.g,|
|00005c70| 0a 20 20 20 20 24 5c 6c | 6f 67 28 30 29 20 3d 20 |. $\l|og(0) = |
|00005c80| 2d 5c 69 6e 66 74 79 24 | 2e 0a 0a 20 20 20 20 5c |-\infty$|... \|
|00005c90| 69 74 65 6d 5b 4e 6f 74 | 20 61 20 4e 75 6d 62 65 |item[Not| a Numbe|
|00005ca0| 72 5d 20 54 68 69 73 20 | 76 61 6c 75 65 20 69 73 |r] This |value is|
|00005cb0| 20 72 65 74 75 72 6e 65 | 64 20 62 79 20 61 20 66 | returne|d by a f|
|00005cc0| 75 6e 63 74 69 6f 6e 20 | 63 61 6c 6c 65 64 0a 20 |unction |called. |
|00005cd0| 20 20 20 77 69 74 68 20 | 61 6e 20 61 72 67 75 6d | with |an argum|
|00005ce0| 65 6e 74 20 6f 75 74 20 | 6f 66 20 74 68 65 20 64 |ent out |of the d|
|00005cf0| 6f 6d 61 69 6e 2c 20 73 | 75 63 68 20 61 73 20 61 |omain, s|uch as a|
|00005d00| 20 6e 65 67 61 74 69 76 | 65 0a 20 20 20 20 6e 75 | negativ|e. nu|
|00005d10| 6d 62 65 72 20 74 6f 20 | 61 20 6c 6f 67 28 29 20 |mber to |a log() |
|00005d20| 6f 66 20 61 20 6e 75 6d | 62 65 72 20 73 6d 61 6c |of a num|ber smal|
|00005d30| 6c 65 72 20 74 68 61 74 | 20 31 20 66 6f 72 20 61 |ler that| 1 for a|
|00005d40| 63 6f 73 68 28 29 2e 0a | 20 20 20 20 54 68 69 73 |cosh()..| This|
|00005d50| 20 76 61 6c 75 65 20 69 | 73 20 61 6c 73 6f 20 72 | value i|s also r|
|00005d60| 65 74 75 72 6e 65 64 20 | 77 68 65 6e 20 74 72 79 |eturned |when try|
|00005d70| 69 6e 67 20 74 6f 20 64 | 69 76 69 64 65 20 30 20 |ing to d|ivide 0 |
|00005d80| 62 79 0a 20 20 20 20 69 | 74 73 65 6c 66 2c 20 6f |by. i|tself, o|
|00005d90| 72 20 74 68 65 20 49 6e | 66 69 6e 69 74 79 20 62 |r the In|finity b|
|00005da0| 79 20 69 74 73 65 6c 66 | 2e 0a 0a 20 20 20 20 5c |y itself|... \|
|00005db0| 69 74 65 6d 5b 4f 75 74 | 20 6f 66 20 52 61 6e 67 |item[Out| of Rang|
|00005dc0| 65 5d 20 54 68 69 73 20 | 69 73 20 61 20 66 6c 61 |e] This |is a fla|
|00005dd0| 67 20 28 65 72 72 6f 72 | 20 6e 75 6d 62 65 72 29 |g (error| number)|
|00005de0| 20 74 68 61 74 20 69 73 | 0a 20 20 20 20 72 61 69 | that is|. rai|
|00005df0| 73 65 64 20 62 79 20 74 | 68 65 20 6d 61 74 68 65 |sed by t|he mathe|
|00005e00| 6d 61 74 69 63 61 6c 20 | 66 75 6e 63 74 69 6f 6e |matical |function|
|00005e10| 73 20 72 65 74 75 72 6e | 69 6e 67 20 61 20 76 61 |s return|ing a va|
|00005e20| 6c 75 65 0a 20 20 20 20 | 74 68 61 74 20 63 61 6e |lue. |that can|
|00005e30| 6e 6f 74 20 62 65 20 72 | 65 70 72 65 73 65 6e 74 |not be r|epresent|
|00005e40| 65 64 20 62 79 20 61 20 | 64 6f 75 62 6c 65 20 43 |ed by a |double C|
|00005e50| 20 74 79 70 65 20 28 64 | 6f 75 62 6c 65 20 70 72 | type (d|ouble pr|
|00005e60| 65 63 69 73 69 6f 6e 0a | 20 20 20 20 46 4f 52 54 |ecision.| FORT|
|00005e70| 52 41 4e 29 2e 0a 0a 20 | 20 20 20 5c 69 74 65 6d |RAN)... | \item|
|00005e80| 5b 4f 75 74 20 6f 66 20 | 44 6f 6d 61 69 6e 5d 20 |[Out of |Domain] |
|00005e90| 54 68 69 73 20 66 6c 61 | 67 20 69 73 20 72 61 69 |This fla|g is rai|
|00005ea0| 73 65 64 20 77 68 65 6e | 65 76 65 72 20 74 68 65 |sed when|ever the|
|00005eb0| 20 61 72 67 75 6d 65 6e | 74 0a 20 20 20 20 69 73 | argumen|t. is|
|00005ec0| 20 75 6e 61 63 63 65 70 | 74 61 62 6c 65 20 66 6f | unaccep|table fo|
|00005ed0| 72 20 61 20 67 69 76 65 | 6e 20 6d 61 74 68 65 6d |r a give|n mathem|
|00005ee0| 61 74 69 63 61 6c 20 66 | 75 6e 63 74 69 6f 6e 2e |atical f|unction.|
|00005ef0| 20 54 79 70 69 63 61 6c | 20 65 78 61 6d 70 6c 65 | Typical| example|
|00005f00| 73 0a 20 20 20 20 61 72 | 65 20 24 78 3c 30 24 20 |s. ar|e $x<0$ |
|00005f10| 66 6f 72 20 24 5c 6c 6f | 67 28 78 29 2c 20 5c 6c |for $\lo|g(x), \l|
|00005f20| 6e 28 78 29 2c 20 78 5e | 7b 72 7d 24 20 66 6f 72 |n(x), x^|{r}$ for|
|00005f30| 20 61 6e 79 20 24 72 24 | 2c 0a 20 20 20 20 24 78 | any $r$|,. $x|
|00005f40| 20 5c 6e 6f 74 5c 69 6e | 20 5b 2d 31 2c 31 5d 24 | \not\in| [-1,1]$|
|00005f50| 20 66 6f 72 20 61 63 6f | 73 24 28 78 29 24 2c 20 | for aco|s$(x)$, |
|00005f60| 61 73 69 6e 24 28 78 29 | 24 2c 20 65 74 63 2e 0a |asin$(x)|$, etc..|
|00005f70| 5c 65 6e 64 7b 64 65 73 | 63 72 69 70 74 69 6f 6e |\end{des|cription|
|00005f80| 7d 0a 0a 20 20 20 20 42 | 79 20 73 65 74 74 69 6e |}.. B|y settin|
|00005f90| 67 20 74 68 65 20 65 72 | 72 6f 72 20 74 6f 20 73 |g the er|ror to s|
|00005fa0| 6f 6d 65 20 6f 66 20 74 | 68 65 73 65 2c 20 74 68 |ome of t|hese, th|
|00005fb0| 65 20 75 73 65 72 20 6b | 65 65 70 73 0a 20 20 20 |e user k|eeps. |
|00005fc0| 20 63 6f 6e 74 72 6f 6c | 20 6f 76 65 72 20 74 68 | control| over th|
|00005fd0| 65 20 77 68 6f 6c 65 20 | 63 61 6c 63 75 6c 61 74 |e whole |calculat|
|00005fe0| 69 6f 6e 2e 20 49 66 20 | 61 20 63 6f 6d 70 75 74 |ion. If |a comput|
|00005ff0| 61 74 69 6f 6e 61 6c 0a | 20 20 20 20 65 72 72 6f |ational.| erro|
|00006000| 72 20 6f 63 63 75 72 73 | 20 69 6e 20 61 20 6c 6f |r occurs| in a lo|
|00006010| 6f 70 2c 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 20 |op, the |element |
|00006020| 6e 75 6d 62 65 72 20 77 | 69 6c 6c 20 62 65 20 69 |number w|ill be i|
|00006030| 6e 64 69 63 61 74 65 64 | 0a 20 20 20 20 61 6c 6f |ndicated|. alo|
|00006040| 6e 67 20 77 69 74 68 20 | 74 68 65 20 65 72 72 6f |ng with |the erro|
|00006050| 72 20 6d 65 73 73 61 67 | 65 2e 20 54 68 65 20 64 |r messag|e. The d|
|00006060| 65 66 61 75 6c 74 20 69 | 73 20 74 6f 20 68 61 76 |efault i|s to hav|
|00006070| 65 20 61 6c 6c 0a 20 20 | 20 20 65 72 72 6f 72 20 |e all. | error |
|00006080| 63 68 65 63 6b 73 20 61 | 63 74 69 76 65 2e 0a 0a |checks a|ctive...|
|00006090| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 46 6c 6f 77 |\subsect|ion{Flow|
|000060a0| 20 43 6f 6e 74 72 6f 6c | 7d 0a 20 20 20 20 54 68 | Control|}. Th|
|000060b0| 65 20 43 2d 63 61 6c 63 | 75 6c 61 74 6f 72 20 6d |e C-calc|ulator m|
|000060c0| 6f 64 65 20 73 75 70 70 | 6f 72 74 73 20 74 68 65 |ode supp|orts the|
|000060d0| 20 7b 5c 74 74 20 69 66 | 2d 65 6c 73 65 7d 2c 20 | {\tt if|-else}, |
|000060e0| 7b 5c 74 74 20 77 68 69 | 6c 65 7d 2c 0a 20 20 20 |{\tt whi|le},. |
|000060f0| 20 61 6e 64 20 7b 5c 74 | 74 20 66 6f 72 7d 20 63 | and {\t|t for} c|
|00006100| 6f 6e 73 74 72 75 63 74 | 69 6f 6e 73 2e 20 54 68 |onstruct|ions. Th|
|00006110| 65 20 73 79 6e 74 61 78 | 20 69 73 20 76 65 72 79 |e syntax| is very|
|00006120| 20 73 69 6d 69 6c 61 72 | 0a 20 20 20 20 74 6f 20 | similar|. to |
|00006130| 74 68 65 20 6f 6e 65 20 | 69 6e 20 43 2e 20 54 68 |the one |in C. Th|
|00006140| 65 79 20 63 61 6e 20 62 | 65 20 65 6d 62 65 64 64 |ey can b|e embedd|
|00006150| 65 64 20 6f 6e 65 20 69 | 6e 20 61 6e 6f 74 68 65 |ed one i|n anothe|
|00006160| 72 2c 0a 20 20 20 20 77 | 69 74 68 20 6e 6f 20 6f |r,. w|ith no o|
|00006170| 74 68 65 72 20 6c 69 6d | 69 74 20 74 68 61 74 20 |ther lim|it that |
|00006180| 74 68 65 20 63 6f 6d 70 | 69 6c 65 64 20 63 6f 64 |the comp|iled cod|
|00006190| 65 20 64 6f 65 73 20 6e | 6f 74 20 62 6c 6f 77 20 |e does n|ot blow |
|000061a0| 5c 66 75 64 67 69 74 27 | 73 0a 20 20 20 20 69 6e |\fudgit'|s. in|
|000061b0| 74 65 72 6e 61 6c 20 6d | 61 63 68 69 6e 65 20 63 |ternal m|achine c|
|000061c0| 61 70 61 63 69 74 79 2e | 0a 0a 20 20 20 20 54 68 |apacity.|.. Th|
|000061d0| 65 20 62 61 73 69 63 20 | 43 2d 63 61 6c 63 75 6c |e basic |C-calcul|
|000061e0| 61 74 6f 72 20 6d 6f 64 | 65 20 7b 5c 74 74 20 69 |ator mod|e {\tt i|
|000061f0| 66 7d 20 73 79 6e 74 61 | 78 20 69 73 0a 20 20 20 |f} synta|x is. |
|00006200| 20 5c 62 71 0a 20 20 20 | 20 69 66 20 28 7b 5c 69 | \bq. | if ({\i|
|00006210| 74 20 63 6f 6e 64 69 74 | 69 6f 6e 73 7d 29 20 5c |t condit|ions}) \|
|00006220| 7b 5c 5c 0a 20 20 20 20 | 7b 5c 69 74 20 63 6d 6f |{\\. |{\it cmo|
|00006230| 64 65 2d 73 74 61 74 65 | 6d 65 6e 74 73 7d 5c 5c |de-state|ments}\\|
|00006240| 0a 20 20 20 20 5c 7d 20 | 65 6c 73 65 20 69 66 20 |. \} |else if |
|00006250| 28 7b 5c 69 74 20 63 6f | 6e 64 69 74 69 6f 6e 73 |({\it co|nditions|
|00006260| 7d 29 20 5c 7b 5c 5c 0a | 20 20 20 20 7b 5c 69 74 |}) \{\\.| {\it|
|00006270| 20 63 6d 6f 64 65 2d 73 | 74 61 74 65 6d 65 6e 74 | cmode-s|tatement|
|00006280| 73 7d 5c 5c 0a 20 20 20 | 20 5c 7d 20 65 6c 73 65 |s}\\. | \} else|
|00006290| 20 5c 7b 5c 5c 0a 20 20 | 20 20 7b 5c 69 74 20 63 | \{\\. | {\it c|
|000062a0| 6d 6f 64 65 2d 73 74 61 | 74 65 6d 65 6e 74 73 7d |mode-sta|tements}|
|000062b0| 5c 5c 0a 20 20 20 20 5c | 7d 0a 20 20 20 20 5c 65 |\\. \|}. \e|
|000062c0| 71 0a 20 20 20 20 6f 72 | 2c 20 66 6f 72 20 73 69 |q. or|, for si|
|000062d0| 6e 67 6c 65 20 6c 69 6e | 65 20 73 74 61 74 65 6d |ngle lin|e statem|
|000062e0| 65 6e 74 73 2c 20 6f 72 | 20 73 65 6d 69 63 6f 6c |ents, or| semicol|
|000062f0| 6f 6e 20 73 65 70 61 72 | 61 74 65 64 20 6c 69 73 |on separ|ated lis|
|00006300| 74 0a 20 20 20 20 6f 66 | 20 73 74 61 74 65 6d 65 |t. of| stateme|
|00006310| 6e 74 73 20 74 79 70 65 | 64 20 6f 6e 20 74 68 65 |nts type|d on the|
|00006320| 20 73 61 6d 65 20 6c 69 | 6e 65 2c 20 74 68 65 20 | same li|ne, the |
|00006330| 66 6f 6c 6c 6f 77 69 6e | 67 20 73 79 6e 74 61 78 |followin|g syntax|
|00006340| 0a 20 20 20 20 5c 62 71 | 0a 20 20 20 20 69 66 20 |. \bq|. if |
|00006350| 28 7b 5c 69 74 20 63 6f | 6e 64 69 74 69 6f 6e 73 |({\it co|nditions|
|00006360| 7d 29 5c 5c 0a 20 20 20 | 20 20 20 20 20 7b 5c 69 |})\\. | {\i|
|00006370| 74 20 63 6d 6f 64 65 2d | 6c 69 6e 65 2d 73 74 61 |t cmode-|line-sta|
|00006380| 74 65 6d 65 6e 74 7d 5c | 5c 0a 20 20 20 20 65 6c |tement}\|\. el|
|00006390| 73 65 5c 5c 0a 20 20 20 | 20 20 20 20 20 7b 5c 69 |se\\. | {\i|
|000063a0| 74 20 63 6d 6f 64 65 2d | 6c 69 6e 65 2d 73 74 61 |t cmode-|line-sta|
|000063b0| 74 65 6d 65 6e 74 7d 0a | 20 20 20 20 5c 65 71 0a |tement}.| \eq.|
|000063c0| 20 20 20 20 69 73 20 70 | 65 72 66 65 63 74 6c 79 | is p|erfectly|
|000063d0| 20 6c 65 67 61 6c 2e 20 | 54 68 65 20 73 61 6d 65 | legal. |The same|
|000063e0| 20 43 20 74 79 70 65 20 | 6f 66 20 63 6f 6e 73 74 | C type |of const|
|000063f0| 72 75 63 74 69 6f 6e 20 | 69 73 20 76 61 6c 69 64 |ruction |is valid|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.